PHP code example of jeffersongoncalves / laravel-dataforseo
1. Go to this page and download the library: Download jeffersongoncalves/laravel-dataforseo 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/ */
jeffersongoncalves / laravel-dataforseo example snippets
try {
$result = DataForSeo::serp()->google('laravel');
} catch (DataForSeoException $e) {
// $e->getMessage() — the API's status_message/message, or the raw response body
// $e->statusCode — the HTTP status code returned by DataForSEO
}