Download the PHP package adaiasmagdiel/hermes without Composer
On this page you can find all versions of the php package adaiasmagdiel/hermes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adaiasmagdiel/hermes
More information about adaiasmagdiel/hermes
Files in adaiasmagdiel/hermes
Package hermes
Short Description Hermes is a experimental lightweight PHP library for routing management. It provides a simple and intuitive way to define routes and execute actions based on HTTP requests.
License MIT
Homepage https://github.com/AdaiasMagdiel/hermes
Informations about the package hermes
Hermes
The image was generated using AI.
Hermes is an experimental lightweight PHP library for routing management. It provides a simple and intuitive way to define routes and execute actions based on HTTP requests.
Navigation
- Features
- Installation
- Usage
- Documentation
- Tests
- License
- Contributing
- Credits
Features
- Define routes easily using HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS and PATCH).
- Execute actions based on requested routes.
- Lightweight, experimental, and easy to integrate into existing projects.
Installation
You can install Hermes via composer.
Usage
Here's a basic example of how to use Hermes:
In this example, we define routes for different HTTP methods (GET
and POST
) and execute actions based on the requested routes.
First you need to initialize the Router
class with the static initialize
method. Then you can use the methods to add routes, also you can add a 404 and 500 page with the set400
e set500
methods.
Documentation
To access the full documentation and see more examples of usage, please visit the documentation page.
Tests
To run the tests for Hermes, you can use the following command:
License
Hermes is open-source software licensed under the MIT License. See the LICENSE file for more details.
Contributing
I welcome contributions to the Hermes project! To contribute, follow these steps:
-
Clone the repository to your local machine:
-
Install the development dependencies using Composer:
-
Make your changes or additions to the codebase.
-
Write and test your changes to ensure they work as expected:
-
Commit your changes and push them to your fork of the repository.
- Submit a pull request with a clear description of your changes.
I appreciate your contributions and feedback! If you encounter any issues or have suggestions for improvements, please don't hesitate to open an issue on GitHub.
Credits
Hermes is developed and maintained by Adaías Magdiel.