gerfey/tecdoc-client - client for working with the TecDoc API, designed to run on Laravel.
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
- 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
<?php
$tecDoc = new \Gerfey\TecDoc\Request\Pegasus\Pegasus_3_0(new \Gerfey\TecDoc\Http\TecDocClient());
dd($tecDoc->getAmBrands()->getJson());
{#1821
+"data": {#1820
+"array": array:142 [
0 => {#1685
+"brandId": 1
+"brandLogoID": "100000"
+"brandName": "SPIDAN"
}
1 => {#1677
+"brandId": 2
+"brandLogoID": "200001"
+"brandName": "HELLA"
}
...
]
}
+"status": 200
}
The gerfey/tecdoc-client library is copyright © Alexander Levchenkov and licensed for use under the MIT License (MIT). Please see LICENSE for more information.