Imported from NeuralBlitz/Agent-Gateway (
agent-gateway/skills/user/categories/programming-languages/php/SKILL.md). Install upstream withnpx skills add NeuralBlitz/Agent-Gateway --skill php. Copyright stays with the author.
PHP
PHP is a server-side scripting language designed for web development, powering over 75% of websites with known server-side programming. It excels at dynamic content generation and database interaction.
Key Concepts
- Composer dependency management
- PSR standards
- Namespaces and autoloading
- PDO for database access
- OpCache for performance
Common Use Cases
- Content management systems (WordPress, Drupal)
- E-commerce platforms (Magento, Laravel)
- REST APIs
- Web applications
- Legacy system maintenance
Best Practices
- Use Composer for dependencies
- Follow PSR coding standards
- Implement proper error handling
- Use prepared statements for DB
- Leverage OPcache in production
Resources
- PHP.net: php.net
- Packagist: packagist.org
- Related Skills: laravel, wordpress, rest-api, mysql