Skip to content

PHP API template with best practices, static analysis, and utility classes

License

Notifications You must be signed in to change notification settings

Kevinsillo/plantilla-api-php

Repository files navigation

PHP API Template 🚀

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. 🌟

✨ Features

  • 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.

🛠️ Technologies Used

This template leverages:

⚙️ Requirements

Before using this template, ensure you have the following installed:

  • PHP 8.0 or higher.

🚀 Installation

Getting started is quick and easy! Simply run:

make

🧑‍💻 Usage

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.

🤝 Contributing

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.

📜 License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as you see fit. 😊

About

PHP API template with best practices, static analysis, and utility classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published