strata / data
Framework to read data
v0.8.2
2023-02-26 18:51 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- erusev/parsedown-extra: ^0.8.1
- laminas/laminas-feed: ^2.16
- league/commonmark: ^2.2
- spatie/yaml-front-matter: ^2.0
- symfony/cache: ^5.4|^6.0
- symfony/http-client: ^5.4|^6.0
- symfony/monolog-bundle: ^3.7
- symfony/property-access: ^5.4|^6.0
- symfony/stopwatch: ^5.4|^6.0
Requires (Dev)
- overtrue/phplint: ^3.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.5
README
The purpose of this package is to help read data from APIs and other external sources.
Features:
- Download data via HTTP APIs
- Throw exceptions on failed requests
- Supports REST and GraphQL
- Decode data from a variety of formats (e.g. JSON, Markdown)
- Automated debug information (logging and time profiling)
- Cache requests to increase performance
- Tools to help detect whether data has changed since last request
- Transform data (e.g. convert source category to match local category name)
Planned for the future:
- Validate data items to see whether they contain required data properties
- Efficient bulk API queries via concurrent requests
- Download data via local, FTP, S3 filesystem (via Flysystem)
Status
Please note this software is in development, usage may change before the 1.0 release.
Requirements
- PHP 7.4+
- Composer
Installation
Install via Composer:
composer require strata/data:^0.8
Documentation
See docs - these are currently being cleaned up and we plan to publish better docs for v0.10.