avto-dev / static-references-data
静态引用数据
v3.15.0
2024-02-22 06:20 UTC
Requires
- php: ^7.2 || ^8.0
- ext-json: *
Requires (Dev)
- opis/json-schema: ^1.0.8
- phpstan/phpstan: ~0.12.34
- phpunit/phpunit: ^8.5.4 || ^9.3
Suggests
- avto-dev/static-references-laravel: Laravel package for a working with static references data.
- dev-master
- v3.15.0
- v3.14.0
- v3.13.0
- 3.12.0
- v3.11.0
- v3.10.0
- v3.9.0
- v3.8.0
- v3.7.0
- v3.6.0
- v3.5.0
- v3.4.0
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.x-dev
- v2.14.0
- v2.13.0
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-Zaboday-patch-1
This package is auto-updated.
Last update: 2024-09-22 07:34:18 UTC
README
静态引用数据
本仓库包含定期更新的静态引用数据。
安装
使用 composer
请使用以下命令通过composer安装此包
$ composer require avto-dev/static-references-data "^3.2"
需要安装
composer
(如何安装composer)。
需要修复包的主要版本。
之后,您可以使用以下方法读取引用数据
use AvtoDev\StaticReferencesData\StaticReferencesData; StaticReferencesData::cadastralDistricts(); StaticReferencesData::subjectCodes(); StaticReferencesData::vehicleFineArticles(); StaticReferencesData::vehicleRegistrationActions(); StaticReferencesData::vehicleRepairMethods(); StaticReferencesData::vehicleCategories(); StaticReferencesData::vehicleTypes();
使用CDN
您可以使用HTTP通过jsdelivr.com获取引用数据。只需在浏览器中打开此链接 链接 并找到所需的文件。更多文档在这里可以找到。
测试
对于包测试,我们使用phpunit
框架和docker-ce
+ docker-compose
作为开发环境。因此,在克隆仓库后,只需在终端中写入以下内容
$ make build $ make latest # or 'make lowest' $ make test
更改日志
更改日志可以在这里找到。
支持
如果您发现任何包错误,请在本仓库中创建一个问题。
许可证
这是一个开源软件,在MIT许可证下授权。