PHP code example of flarone / google-matrix-api
1. Go to this page and download the library: Download flarone/google-matrix-api 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/ */
flarone / google-matrix-api example snippets
// Use Facades
use Flarone\GoogleMatrix\Facades\GoogleMatrix;
$matrix = GoogleMatrix::calculate('FromAddress', 'To Address');
// Use Helper Function
$matrix = google_matrix('From Address', 'To Address');
bash
php artisan vendor:publish --tag="google-matrix"