PHP SDK for avtocod/specs
This repository contains SDK for data from avtocod/specs specifications repository.
Require this package with composer using the following command:
$ composer require avtocod/specs-php "^1.0"Installed
composeris required (how to install composer).
You need to fix the major version of package.
use Avtocod\Specifications\Specifications;
// Get specifications (not SDK) version
$version = Specifications::version();
// Get report content (full example)
$report_example = Specifications::getReportExample();
// Get report json-schema (as an object or associative array)
$report_schema = Specifications::getReportJsonSchema();For more examples - look into sources.
For package testing we use phpunit framework and docker with compose plugin as develop environment. So, just write into your terminal after repository cloning:
$ make build
$ make latest # or 'make lowest'
$ make testChanges log can be found here.
If you will find any package errors, please, make an issue in current repository.
This is open-sourced software licensed under the MIT License.