alessonmarques / api_client
A simple code to manage the API calls.
v1.0.0
2024-02-22 05:08 UTC
Requires
- php: >=8.0
- symfony/http-client: 7.0.*
README
A simple connection manager made to test knowledge and improve skills.
Commonly used on my studies projects.
To install
composer require alessonmarques/api_client
Requirements
- PHP >= 8.0
- Symfony HttpClient >= 7.0
To use
- Create a class defining the Base Url constant like the 'CamaraDeputados.php' inside the 'examples' folder;
- Create the endpoint classes extending the one created above;
- Add a custom method to get the data, or, use the ->do() (already created) on the 'PluginAbstract';
- You'll need to inject the service whenever you need and use to return the data from APIs.