Start building your APIs in PHP effortlessly with this robust and feature-rich template! 🎉 Designed to save time while encouraging best practices, this template includes a static code analyzer, helpful utility classes, and a clean architecture to keep your code organized and maintainable. 🌟
- Best Practices: Follows PHP standards and clean coding principles.
- Static Code Analysis: Integrated with
phpstan
for detecting code issues early. - Hexagonal Architecture: Promotes scalability and maintainability.
- SOLID Principles: Ensures strong, reliable design patterns.
- Utility Classes: Packed with reusable and helpful classes to jumpstart development.
This template leverages:
- phpstan/phpstan – A powerful static code analyzer for PHP.
- vlucas/phpdotenv – Easily manage environment variables in PHP.
Before using this template, ensure you have the following installed:
- PHP 8.0 or higher.
Getting started is quick and easy! Simply run:
make
Develop directly within the template structure. Use the following commands:
- make check – Run the static analyzer (phpstan) to verify your code.
- make push – Analyze your code and upload it via SSH. 🚀
* Check the Makefile for additional commands and options tailored to streamline your workflow.
Contributions are welcome! If you’d like to improve this template or suggest new features, feel free to open an issue or submit a pull request. 🙌
Before contributing:
Ensure your code follows PHP coding standards.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as you see fit. 😊