All SDKs
PHP

PHP SDK

PHP SDK compatible with Laravel and Symfony. PHP 7.4+.

Install

composer require serpii/serpii-php

Quick start

example.php
<?php
use Serpii\Serpii;

$client = new Serpii(getenv('SERPII_API_KEY'));

$results = $client->search([
    'q' => 'best coffee shops in austin',
    'location' => 'Austin, TX',
    'num' => 10,
]);

print_r($results['organic_results']);
echo $results['intent'];
← Back to SDKs