Simple and extensible Triposo API PHP Client with Laravel Facade and ServiceProvider based on Guzzle 6 Currently it supports only userless endpoint requests.
- Add the package as a dependency in your composer.json
composer require sandeepchowdary7/laratriposo
- publish the vendor config file
php artisan vendor:publish --provider="Sandeepchowdary7\Laratriposo\LaratriposoServiceProvider"
- Add your Triposo API token to the config file located in app/config/triposo.php. I recommend you add this key to your project .env file instead of directly adding it to your config file. You can find your API token at the user settings page (https://www.triposo.com).
TRIPOSO_API_TOKEN=your token here
- Add your Triposo Account ID to the config file located in app/config/triposo.php. I recommend you add this key to your project .env file instead of directly adding it to your config file.
TRIPOSO_ACCOUNT_ID=Your Account ID here
- Add the following line to your providers array in your
config/app.php
file
Sandeepchowdary7\Laratriposo\LaratriposoServiceProvider::class,
- Add the following line to your aliases array in your
config/app.php
file
'Triposo' => Sandeepchowdary7\Laratriposo\Facade\LaratriposoFacade::class,
$city = new Triposo();
$city = new Triposo();
$city->getCity($cityName);
$cityFood = new Triposo();
$cityFood->getCityFood($cityName);
For more information about the REST API go to this link: https://www.triposo.com
The MIT License (MIT). Please see License File for more information.