PHP code example of swiftyper / swiftyper-php
1. Go to this page and download the library: Download swiftyper/swiftyper-php 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/ */
swiftyper / swiftyper-php example snippets
\Swiftyper\Swiftyper::setApiKey('API_KEY_OF_SWIFTYPER_BUSINESS');
$results = \Swiftyper\Business::query([
'query' => 'Google Slovakia',
'country' => 'SK',
]);
var_dump($results->toArray());
$business = \Swiftyper\Business::detail('sk_WbilvhDEDokFTWk0FbNjeQ');
var_dump($business->getLastResponse());
\Swiftyper\Swiftyper::setMaxNetworkRetries(2);
bash
composer