PHP code example of cboxdk / laravel-nexus
1. Go to this page and download the library: Download cboxdk/laravel-nexus 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/ */
cboxdk / laravel-nexus example snippets
use Cbox\Nexus\Contracts\NexusEngine;
use Cbox\Geo\ValueObjects\SubdivisionCode;
$report = app(NexusEngine::class)->report([
new SubdivisionCode('US-CA'),
new SubdivisionCode('US-TX'),
]);
foreach ($report->triggered() as $evaluation) {
// $evaluation->state, $evaluation->reason, $evaluation->threshold->describe()
}