This repository contains regularly updated static references data.
Require this package with composer using the following command:
$ composer require avto-dev/static-references-data "^3.2"
Installed
composer
is required (how to install composer).
You need to fix the major version of package.
After that you can read references data using following methods:
use AvtoDev\StaticReferencesData\StaticReferencesData;
StaticReferencesData::cadastralDistricts();
StaticReferencesData::subjectCodes();
StaticReferencesData::vehicleFineArticles();
StaticReferencesData::vehicleRegistrationActions();
StaticReferencesData::vehicleRepairMethods();
StaticReferencesData::vehicleCategories();
StaticReferencesData::vehicleTypes();
You can use HTTP for fetching references data using jsdelivr.com. Just open in your browser this link and find required file. More documentation can be found here.
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 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.