gerfey/tecdoc-client

Client for working with the TecDoc API

v0.1.3 2022-08-02 06:08 UTC

This package is auto-updated.

Last update: 2024-04-30 00:34:00 UTC


README

Source Code Software License Total Downloads

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

  1. Use command php artisan vendor:publish and select tag: tecdoc
  2. Check files tecdoc.php to path .../laravel-project/config/
  3. 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.