avtocod/specs-php

PHP SDK for 'Avtocod project' specifications

v1.8.0 2024-01-24 12:13 UTC

This package is auto-updated.

Last update: 2024-03-24 12:30:38 UTC


README

avtocod

Version PHP Version Build Status Coverage Downloads count License

PHP SDK for avtocod/specs

This repository contains SDK for data from avtocod/specs specifications repository.

Install

Require this package with composer using the following command:

$ composer require avtocod/specs-php "^1.0"

Installed composer is required (how to install composer).

You need to fix the major version of package.

Usage

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.

Testing

For package testing we use phpunit framework and docker-ce + docker-compose as develop environment. So, just write into your terminal after repository cloning:

$ make build
$ make latest # or 'make lowest'
$ make test

Changes log

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

If you will find any package errors, please, make an issue in current repository.

License

This is open-sourced software licensed under the MIT License.