avto-dev/static-references-laravel
Composer 安装命令:
composer require avto-dev/static-references-laravel
包简介
Static references for Laravel applications
关键字:
README 文档
README
Wrappers around data from static-references-data
Using this package you can get access to the data from package avto-dev/static-references-data simpler and more convenient.
Service-provider for integration with Laravel application comes too.
Install
Require this package with composer using the following command:
$ composer require avto-dev/static-references-laravel "^4.0"
Installed
composeris required (how to install composer).
You need to fix the major version of package.
Usage
Use illuminate service container for getting access to the references instances. For example, in artisan command:
<?php namespace App\Console\Commands; use AvtoDev\StaticReferences\References\SubjectCodes; use AvtoDev\StaticReferences\References\VehicleCategories; class SomeCommand extends \Illuminate\Console\Command { /** * The console command name. * * @var string */ protected $name = 'some:command'; /** * Execute the console command. * * @param SubjectCodes $subject_codes * @param VehicleCategories $vehicle_categories * * @return void */ public function handle(SubjectCodes $subject_codes, VehicleCategories $vehicle_categories): void { // Print all vehicle categories in a one string $this->info(collect($vehicle_categories)->pluck('code')->implode(', ')); // A, A1, B, BE... // Get all GIBDD codes for moscow subject $this->info($subject_codes->getByGibddCode(77)->getGibddCodes()); // [77, 97, 99, 177, ...] // Make GIBDD codes validation $subject_codes->hasGibddCode(777); // true $subject_codes->hasGibddCode(666); // false } }
All available references can be found in this directory.
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
Changes log can be found here.
Support
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.
avto-dev/static-references-laravel 适用场景与选型建议
avto-dev/static-references-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35.28k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「static」 「laravel」 「references」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 avto-dev/static-references-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 avto-dev/static-references-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 avto-dev/static-references-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bookdown.io With Bootswatch Styles And Prism Syntax Highlighting
Data for static references
TwigStan is a static analyzer for Twig templates powered by PHPStan
A Laravel package for making payments through the EuPago API.
Arc5 provides a set of static classes for the Mvc5 Framework
TYPO3 Portfolios by coding.ms: Extension for displaying portfolios, references, and work examples with categories, tags, detail and teaser views, plus related entries. Bookmarks, Isotope multi-filter, PDF generator, images, downloads, and radial search improve presentation, navigation, and discovery
统计信息
- 总下载量: 35.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-25