composite/laravel-tecdoc
Composer 安装命令:
composer require composite/laravel-tecdoc
包简介
TecDoc API wrapper for laravel
README 文档
README
![Software License][shield-license]
Status: Under construction
Roadmap
- Implement environment
- Add further docs
Dependencies
- PHP: ^8.1
Install
You can install the package via Composer
composer require composite/laravel-tecdoc
In Laravel 5.5 or above the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:
'providers' => [ ... /* * Package Service Providers... */ Composite\TecDoc\TecDocServiceProvider::class, ... ], 'aliases' => [ ... 'TecDoc' => Composite\TecDoc\Facades\TecDoc::class, ... ],
You can publish the config file with:
php artisan vendor:publish --provider="Composite\TecDoc\TecDocServiceProvider" --tag=config
When published, the config/tecdoc.php config file contains:
<?php return [ /* |-------------------------------------------------------------------------- | TecDoc service url |-------------------------------------------------------------------------- | | The service url of TecDoc REST API | */ 'service_url' => env('TEC_DOC_SERVICE_URL', "https://webservice.tecalliance.services/pegasus-3-0/services/TecdocToCatDLB.jsonEndpoint"), /* |-------------------------------------------------------------------------- | API key (optional if IP is whitelisted) |-------------------------------------------------------------------------- | | The user's API key for TecDoc REST API service. | */ 'api_key' => env('TECDOC_API_KEY'), /* |-------------------------------------------------------------------------- | Provider ID |-------------------------------------------------------------------------- | | The user's provider ID for TecDoc REST API service | */ 'provider_id' => env('TECDOC_PROVIDER_ID'), /* |-------------------------------------------------------------------------- | Country code (ISO 3166) |-------------------------------------------------------------------------- | | The user's registered country code (Country code according to ISO 3166) | */ 'country' => env('TECDOC_COUNTRY'), /* |-------------------------------------------------------------------------- | Language code (ISO 639) |-------------------------------------------------------------------------- | | Chosen language code for response (Language code according to ISO 639) | */ 'lang' => env('TECDOC_LANG'), ];
Usage
- Manufacturers, check out the manufacturers.md
- Model series, check out the modelSeries.md
- Vehicles, check out the vehicles.md
- Articles, check out the articles.md
- Addresses, check out the articles.md
- AssemblyGroups, check out the assemblyGroups.md
TecDoc::get(string $uri, array $payload = []); TecDoc::post(string $uri, array $payload = []); TecDoc::put(string $uri, array $payload = []); TecDoc::delete(string $uri, array $payload = []); TecDoc::manufacturers()->all(array $filter = null); TecDoc::modelSeries()->findByNumber(int $manuId, array $filter = null); TecDoc::vehicles()->find(int $carId, array $filter = null); TecDoc::vehicles()->findByNumber(int $manuId, int $modId, array $filter = null); TecDoc::articles()->filter(array $filter); TecDoc::articles()->find(int $articleId, array $filter = null); TecDoc::articles()->findByNumber(int $articleNumber, array $filter = null); TecDoc::addresses()->add(string $address, int $validityHours = null); TecDoc::assemblyGroups()->filter(int $linkingTargetId, string $linkingTargetType = null, array $filter = null, bool $recursive = false);
Testing
composer lint
Contributing
Security Vulnerabilities
If you discover any security-related issues, please email btamba@composite.hu instead of using the issue tracker. All security vulnerabilities will be promptly addressed.
Licence
The Laravel TecDoc package is open-source software licensed under the MIT license.
composite/laravel-tecdoc 适用场景与选型建议
composite/laravel-tecdoc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 701 次下载、GitHub Stars 达 12, 最近一次更新时间为 2021 年 07 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「client」 「laravel」 「tecdoc」 「carpart」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 composite/laravel-tecdoc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 composite/laravel-tecdoc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 composite/laravel-tecdoc 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
Client for Google Directions API to add interpolated points to a route consisting of given coordinates.
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
统计信息
- 总下载量: 701
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-29