PHP code example of slvler / brave-search-api

1. Go to this page and download the library: Download slvler/brave-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 / brave-search-api example snippets


BRAVE_BASE_URL="https://api.search.brave.com"
BRAVE_API_KEY=

use Slvler\Brave\Facades\Brave;

Brave::web(['q' => "bitcoin"])->result();
bash
php artisan vendor:publish --tag=brave