PHP code example of jarir-ahmed / uncensored-search
1. Go to this page and download the library: Download jarir-ahmed/uncensored-search 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/ */
jarir-ahmed / uncensored-search example snippets
use JarirAhmed\UncensoredSearch\UncensoredSearch;
// Load whatever keys you have — only configured providers are used.
$search = UncensoredSearch::fromKeys([
'serper' => 'xxxx',
'tavily' => 'tvly-xxxx',
// 'searchapi' => '...', 'scavio' => '...', 'firecrawl' => '...', 'scrapingbee' => '...',
]);
$results = $search->search('open source vector database');
echo $results->provider(); // "serper" (whichever one answered)
foreach ($results as $hit) {
echo $hit->title() . "\n";
echo $hit->url() . "\n";
echo $hit->snippet() . "\n\n";
}