BO
boolxy/dataforseo
DataForSEO API Client Library for PHP
DataForSEO API Client Library for PHP
The easiest way for using DataForSEO APIs in PHP
Installation
This package can be installed via Composer:
composer require boolxy/dataforseoUsage
use BoolXY\DataForSEO\Client;
use BoolXY\DataForSEO\DataForSEO;
use BoolXY\DataForSEO\Requests\KeywordsData\SearchVolumeForKeyword\LiveDataRequest;
$data = [
[
"language" => "en",
"loc_name_canonical" => "United States",
"key" => "average page rpm adsense",
],
[
"language" => "en",
"loc_id" => 2840,
"key" => "adsense blank ads how long",
],
[
"language" => "en",
"loc_name_canonical" => "United States",
"key" => "leads and prospects",
],
];
$client = new Client($base_uri, $user, $pass);
$result = DataForSEO::create($client)
->setRequest(LiveDataRequest::create($data))
->get();With reviewing the tests, you can learn more...
API documentation: https://docs.dataforseo.com/
Testing
Copy phpunit.xml.dist as phpunit.xml and update it. After then you can start testing.
vendor/bin/phpunitor
composer testCredits
License
The MIT License (MIT).
Please see License File for more information.
On this page
Languages
PHP100.0%
Contributors
Latest Release
1.0.0December 3, 2019MIT License
Created November 27, 2019
Updated February 6, 2026