PHP code example of dot-env-it / laravel-api-integrator
1. Go to this page and download the library: Download dot-env-it/laravel-api-integrator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dot-env-it / laravel-api-integrator example snippets
use DotEnvIt\ApiIntegrator\Facades\Integration;
//api url https://api.github.com/foo
Integration::for('github')->get('foo')->json();
//api url https://api.example.com/foo
Integration::for('example')->get('foo')->json();