PHP code example of bespoke-support / police-api
1. Go to this page and download the library: Download bespoke-support/police-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/ */
bespoke-support / police-api example snippets
ce = new \BespokeSupport\PoliceApi\PoliceUK;
$obj = $police->lastupdated();
var_dump($obj);
$neighbourhoods = PoliceJsonApi::fetch(sprintf('%s/neighbourhoods', $force));