A simple way to manage data retrieval from APIs and other sources. This package is built using Symfony components and can be used with any PHP application, Symfony, Laravel or plain PHP.
You can:
- Read data from REST and GraphQL APIs
- Authenticate with APIs
- Handle errors consistently
- Cache requests to increase performance
- Decode data from a variety of formats (e.g. JSON, Markdown)
- Transform data (e.g. map a category name)
- Work out if data has changed since the last request
See the documentation for more.
You can use this with the frontend package to help you build a frontend website.
Please note this software is in development, usage may change before the 1.0 release.
- PHP 8.1+
- Composer
Install via Composer:
composer require strata/data:^0.9