This repository contains regularly updated static references data.
Require this package with composer using the following command:
$ composer require avto-dev/static-references-data "^2.14"
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::getAutoCategories();
StaticReferencesData::getAutoRegions();
StaticReferencesData::getRegistrationActions();
StaticReferencesData::getRepairMethods();
StaticReferencesData::getAutoFines();
StaticReferencesData::getVehicleTypes();
StaticReferencesData::getCadastralDistricts();
You can use HTTP for fetching references data using https://jsdelivr.com. For example, 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.