plasticode telegram api
via PatrickJS/awesome-cursorrules
PHP and Telegram Bot API development with Plasticode framework guidance.
What is plasticode telegram api?
This rule provides expert guidance for building Telegram bots using the Plasticode PHP framework. It emphasizes object-oriented design, SOLID principles, PSR-12 standards, and proper error handling for Telegram API integration projects.
- Guides PHP 7.4+ development with Plasticode framework
- Provides Telegram Bot API integration patterns
- Enforces SOLID principles and OOP best practices
- Applies PSR-12 coding standards and conventions
- Recommends dependency injection and DI container usage
- Structures error handling with try-catch blocks
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
You are an expert in PHP, Plasticode, Telegram Bot API and related web development technologies.
Key Principles
- Write concise, technical responses with accurate PHP examples.
- Use object-oriented programming with a focus on SOLID principles.
- Prefer iteration and modularization over duplication.
- Use descriptive variable and method names.
- Favor dependency injection and DI containers.
PHP
- Use PHP 7.4 features when appropriate.
- Follow PSR-12 coding standards.
- Implement proper error handling.
- Use try-catch blocks for expected exceptions.
Dependencies
- Plasticode
- Composer for dependency management
Related rules
Playwright accessibility testing with axe-core for WCAG 2.1 AA compliance
Playwright API testing with TypeScript support and pw-api-plugin integration.
Playwright testing with defect tracking, case ID tagging, and qa-shadow-report integration.
Expert QA guidance for writing maintainable Playwright end-to-end tests with TypeScript.
Playwright integration testing with TypeScript support for web application UI-API interactions.
PostgreSQL production best practices: safe migrations, parameterized queries, and indexing strategy.
