gerfey / tecdoc-client
Client for working with the TecDoc API
Installs: 3 150
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0|^8.1
- guzzlehttp/guzzle: ^7.4.5
- jms/serializer: ^1.1
This package is auto-updated.
Last update: 2024-11-30 01:53:55 UTC
README
gerfey/tecdoc-client - client for working with the TecDoc API, designed to run on Laravel.
Installation
The preferred method of installation is via Packagist and Composer. Run
the following command to install the package and add it as a requirement to your
project's composer.json
:
composer require gerfey/tecdoc-client
Settings
- Use command
php artisan vendor:publish
and select tag: tecdoc - Check files tecdoc.php to path .../laravel-project/config/
- Create the TECDOC_PROVIDER_ID, TECDOC_API_KEY, TECDOC_LANGUAGE_CODE keys in the file .env
Run
<?php $tecDoc = new \Gerfey\TecDoc\Request\Pegasus\Pegasus_3_0(new \Gerfey\TecDoc\Http\TecDocClient()); dd($tecDoc->getAmBrands()->getJson());
Result
{#1821 +"data": {#1820 +"array": array:142 [ 0 => {#1685 +"brandId": 1 +"brandLogoID": "100000" +"brandName": "SPIDAN" } 1 => {#1677 +"brandId": 2 +"brandLogoID": "200001" +"brandName": "HELLA" } ... ] } +"status": 200 }
Copyright and License
The gerfey/tecdoc-client library is copyright © Alexander Levchenkov and licensed for use under the MIT License (MIT). Please see LICENSE for more information.