Plasticode Telegram API .cursorrules prompt file
About .cursorrules prompt file
What you can build
Plasticode CMS Enhancement Tool: A web application that provides additional plugins and modules for the Plasticode CMS, leveraging object-oriented PHP principles and dependency injection to allow developers to easily enhance and customize their CMS without duplicating code.
Telegram Bot Management Platform: A web service that allows users to create and manage Telegram bots using the Telegram Bot API. The service follows SOLID principles to ensure the platform is modular and easily extendable with new features.
PHP Data Validation Library: A Composer package designed to help developers validate data in PHP applications, integrating seamlessly with existing Plasticode projects and utilizing PHP 7.4 features to provide a modern, robust validation solution.
Error Handling and Logging Toolkit: A PHP library for Plasticode applications that implements proper error handling and logging, utilizing PSR-12 compliant code and PHP’s try-catch blocks to manage exceptions effectively and provide clear, organized error reports.
Dependency Injection Container for PHP: A service that offers a robust, lightweight DI container designed for PHP applications, adhering to PSR-12 standards and easily integrated with Plasticode projects to improve application architecture and manage dependencies efficiently.
Iterative Coding Learning Platform: An educational platform that teaches PHP and Plasticode through iteration and modularization best practices, providing code examples and exercises focused on implementing concepts like SOLID principles and dependency injection.
Modular PHP Unit Testing Framework: A Composer-managed framework tailored for PHP applications, supporting modular and iteration-focused development, designed to integrate with Plasticode to provide comprehensive unit testing capabilities following best coding standards.
Descriptive Code Snippet Repository: A web-based repository of PHP code snippets with descriptive variable and method names, adhering to PSR-12 standards, aimed at providing developers with best practice examples that can be easily used in Plasticode and other PHP-based projects.
Automated Code Refactoring Service: A PHP service that analyzes and refactors codebases to ensure they follow object-oriented principles, SOLID design, and preferred coding practices, such as minimizing duplication and enhancing modularity, specifically targeting Plasticode projects.
Benefits
- Emphasize precise, technical PHP responses with SOLID-principled OOP, reflecting PSR-12 coding standards and efficient error handling.
- Focus on iteration, modularization, dependency injection, and employing Composer for managing Plasticode dependencies.
- Leverage PHP 7.4 features, providing accurate code examples, with a preference for descriptive variable/method names and effective exception handling.
Synopsis
Developers can build a robust Telegram bot using PHP and Plasticode, adhering to SOLID principles and PSR-12 standards, while leveraging Composer for efficient dependency management.
Overview of .cursorrules prompt
The .cursorrules file is designed for developers working with PHP, Plasticode, and the Telegram Bot API, guiding them towards best practices in web development. It emphasizes writing concise and technical responses, using object-oriented programming and following SOLID principles. The file encourages developers to prioritize iteration and modularization to avoid code duplication, to use descriptive names for variables and methods, and to favor dependency injection. It specifies the use of PHP 7.4 features, adheres to PSR-12 coding standards, and includes implementing proper error handling with try-catch blocks. Dependencies mentioned include Plasticode and Composer for managing dependencies.