https://github.com/avto-dev/static-references-data
Data for static references
https://github.com/avto-dev/static-references-data
data references static
Last synced: 9 months ago
JSON representation
Data for static references
- Host: GitHub
- URL: https://github.com/avto-dev/static-references-data
- Owner: avto-dev
- License: mit
- Created: 2017-10-19T11:23:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T06:21:16.000Z (over 2 years ago)
- Last Synced: 2024-10-02T09:09:37.076Z (over 1 year ago)
- Topics: data, references, static
- Language: PHP
- Size: 236 KB
- Stars: 1
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Static references data
[![Version][badge_packagist_version]][link_packagist]
[![PHP Version][badge_php_version]][link_packagist]
[![Build Status][badge_build_status]][link_build_status]
[![Coverage][badge_coverage]][link_coverage]
[![Downloads count][badge_downloads_count]][link_packagist]
[![License][badge_license]][link_license]
This repository contains regularly updated static references data.
## Install
### Using `composer`
Require this package with composer using the following command:
```shell
$ composer require avto-dev/static-references-data "^3.2"
```
> Installed `composer` is required ([how to install composer][getcomposer]).
> You need to fix the major version of package.
After that you can read references data using following methods:
```php
use AvtoDev\StaticReferencesData\StaticReferencesData;
StaticReferencesData::cadastralDistricts();
StaticReferencesData::subjectCodes();
StaticReferencesData::vehicleFineArticles();
StaticReferencesData::vehicleRegistrationActions();
StaticReferencesData::vehicleRepairMethods();
StaticReferencesData::vehicleCategories();
StaticReferencesData::vehicleTypes();
```
### Using CDN
[](https://www.jsdelivr.com/package/gh/avto-dev/static-references-data)
You can use HTTP for fetching references data using [jsdelivr.com](https://jsdelivr.com). Just open in your browser **[this link](https://www.jsdelivr.com/package/gh/avto-dev/static-references-data?path=data)** and find required file. More documentation [can be found here](https://jsdelivr.com/features#gh).
### 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:
```shell
$ make build
$ make latest # or 'make lowest'
$ make test
```
## Changes log
[![Release date][badge_release_date]][link_releases]
[![Commits since latest release][badge_commits_since_release]][link_commits]
Changes log can be [found here][link_changes_log].
## Support
[![Issues][badge_issues]][link_issues]
[![Issues][badge_pulls]][link_pulls]
If you will find any package errors, please, [make an issue][link_create_issue] in current repository.
## License
This is open-sourced software licensed under the [MIT License][link_license].
[badge_packagist_version]:https://img.shields.io/packagist/v/avto-dev/static-references-data.svg?maxAge=180
[badge_php_version]:https://img.shields.io/packagist/php-v/avto-dev/static-references-data.svg?longCache=true
[badge_build_status]:https://img.shields.io/github/actions/workflow/status/avto-dev/static-references-data/tests.yml
[badge_coverage]:https://img.shields.io/codecov/c/github/avto-dev/static-references-data/master.svg?maxAge=60
[badge_downloads_count]:https://img.shields.io/packagist/dt/avto-dev/static-references-data.svg?maxAge=180
[badge_license]:https://img.shields.io/packagist/l/avto-dev/static-references-data.svg?longCache=true
[badge_release_date]:https://img.shields.io/github/release-date/avto-dev/static-references-data.svg?style=flat-square&maxAge=180
[badge_commits_since_release]:https://img.shields.io/github/commits-since/avto-dev/static-references-data/latest.svg?style=flat-square&maxAge=180
[badge_issues]:https://img.shields.io/github/issues/avto-dev/static-references-data.svg?style=flat-square&maxAge=180
[badge_pulls]:https://img.shields.io/github/issues-pr/avto-dev/static-references-data.svg?style=flat-square&maxAge=180
[link_releases]:https://github.com/avto-dev/static-references-data/releases
[link_packagist]:https://packagist.org/packages/avto-dev/static-references-data
[link_build_status]:https://github.com/avto-dev/static-references-data/actions
[link_coverage]:https://codecov.io/gh/avto-dev/static-references-data/
[link_changes_log]:https://github.com/avto-dev/static-references-data/blob/master/CHANGELOG.md
[link_issues]:https://github.com/avto-dev/static-references-data/issues
[link_create_issue]:https://github.com/avto-dev/static-references-data/issues/new/choose
[link_commits]:https://github.com/avto-dev/static-references-data/commits
[link_pulls]:https://github.com/avto-dev/static-references-data/pulls
[link_license]:https://github.com/avto-dev/static-references-data/blob/master/LICENSE
[getcomposer]:https://getcomposer.org/download/