PHP code example of slvler / serpapi-search-api
1. Go to this page and download the library: Download slvler/serpapi-search-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/ */
slvler / serpapi-search-api example snippets
SERPAPI_BASE_URL=https://serpapi.com
SERPAPI_API_VERSION=
SERPAPI_API_KEY=
use Slvler\Serpapi\Facades\Serpapi;
Serpapi::search(['q' => "bitcoin"])->result();
bash
php artisan vendor:publish --tag=serpapi