Welcome to the PSR Exercises repository! This repository contains a series of exercises designed to help you understand and implement PHP Standards Recommendations (PSR). Each exercise folder focuses on different aspects of PSR, aimed at improving your coding standards and PHP skills.
- Introduction
- Esercitazione1
- Esercitazione2
- Esercitazione3
- Esercitazione4
- Esercitazione5
- Esercitazione6
- Esercitazione7
- Esercitazione8
- Esercitazione9
- Esercitazione10
- Contributing
- License
PHP Standards Recommendations (PSR) are a set of coding standards published by the PHP-FIG group. This repository provides practical exercises to help you adhere to these standards in your projects.
Exercises related to the basic coding standards outlined in PSR-1.
Understand and implement basic file formatting and structure as per PSR-1.
Exercises focused on coding style guide as per PSR-2.
Learn and apply consistent coding styles including indentation, line length, and braces.
Exercises related to the logger interface as defined in PSR-3.
Implement a logger that conforms to the PSR-3 LoggerInterface.
Exercises on the autoloading standard defined in PSR-4.
Set up autoloading for your project using Composer and PSR-4.
Further exercises expanding on PSR concepts, including more advanced standards and real-world applications.
Deepen understanding and practical application of various PSR standards.
We welcome contributions! If you have improvements or additional exercises to suggest, please create a pull request. Follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the GPL-3.0 License. See the LICENSE file for more details.
Happy coding and may your PHP be clean and maintainable!