Skip to content

sroman0/PSR

Repository files navigation

PSR Exercises

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.

Table of Contents

  1. Introduction
  2. Esercitazione1
  3. Esercitazione2
  4. Esercitazione3
  5. Esercitazione4
  6. Esercitazione5
  7. Esercitazione6
  8. Esercitazione7
  9. Esercitazione8
  10. Esercitazione9
  11. Esercitazione10
  12. Contributing
  13. License

Introduction

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.

Esercitazione1

Description

Exercises related to the basic coding standards outlined in PSR-1.

Goal

Understand and implement basic file formatting and structure as per PSR-1.

Esercitazione2

Description

Exercises focused on coding style guide as per PSR-2.

Goal

Learn and apply consistent coding styles including indentation, line length, and braces.

Esercitazione3

Description

Exercises related to the logger interface as defined in PSR-3.

Goal

Implement a logger that conforms to the PSR-3 LoggerInterface.

Esercitazione4

Description

Exercises on the autoloading standard defined in PSR-4.

Goal

Set up autoloading for your project using Composer and PSR-4.

Esercitazione5 to Esercitazione10

Description

Further exercises expanding on PSR concepts, including more advanced standards and real-world applications.

Goal

Deepen understanding and practical application of various PSR standards.

Contributing

We welcome contributions! If you have improvements or additional exercises to suggest, please create a pull request. Follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a new Pull Request.

License

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!

About

esercizi psr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published