PHPackages                             slvler/brave-search-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. slvler/brave-search-api

ActiveLibrary[Search &amp; Filtering](/categories/search)

slvler/brave-search-api
=======================

Brave search api API wrapper for Laravel

v2.0.1(1y ago)321MITPHPPHP ^8.2

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/slvler/brave-search-api)[ Packagist](https://packagist.org/packages/slvler/brave-search-api)[ Docs](https://github.com/slvler/brave-search-api)[ RSS](/packages/slvler-brave-search-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

Brave Web Search API
====================

[](#brave-web-search-api)

[![tests](https://github.com/slvler/brave-search-api/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/brave-search-api)[![Latest Stable Version](https://camo.githubusercontent.com/f6fe3147d00c957eabdf6c78220a040f868c6321cc6fdad0135c961cf1e2abac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c766c65722f62726176652d7365617263682d6170692e737667)](https://packagist.org/packages/slvler/brave-search-api)[![License](https://camo.githubusercontent.com/8e21bd6183003dc0a9e629c5a40a8e0454a938c9454af2a250f6b0f9311002db/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f62726176652d7365617263682d6170692f6c6963656e7365)](https://packagist.org/packages/slvler/brave-search-api)[![Total Downloads](https://camo.githubusercontent.com/a3fe09ccd4cbbdd298fdf39c22015ba507d53a2acf0a609d37d6a56e370b8fc5/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f62726176652d7365617263682d6170692f646f776e6c6f616473)](https://packagist.org/packages/slvler/brave-search-api)

### Introduction

[](#introduction)

Brave Web Search API is a REST API to query Brave Search and get back search results from the web. The following sections describe how to curate requests, including parameters and headers, to Brave Web Search API and get a JSON response back. This package provides a convenient wrapper to the [Brave Web Search API](https://api.search.brave.com/app/documentation/web-search/get-started) for Laravel applications.

Requirements
------------

[](#requirements)

- PHP 8.2
- Laravel 9.x | 10.x | 11.x

Installation
------------

[](#installation)

To install this package tou can use composer:

```
composer require slvler/brave-search-api
```

Usage
-----

[](#usage)

- First, you should extract the config/brave.php file to the config folder.

```
php artisan vendor:publish --tag=brave
```

- First of all we'll add the API key and API Url of the service we're using to our .env file of our project. If you don't have an account yet on api.search.brave.com, you should create one. Once you have an account you can copy your API key from the dashboard page and put it into you .env file.

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

#### Web text search

[](#web-text-search)

- You can use it to search on brave api:

```
use Slvler\Brave\Facades\Brave;

Brave::web(['q' => "bitcoin"])->result();
```

#### Image Search

[](#image-search)

```
use Slvler\Brave\Facades\Brave;

Brave::image(['q' => "munich", "safesearch" => "strict"])->result();
```

### Testing

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/brave-search-api/blob/main/LICENSE.md) for more information.

Contributing
------------

[](#contributing)

You're very welcome to contribute. Please see [CONTRIBUTING](https://github.com/slvler/brave-search-api/blob/main/CONTRIBUTING.md) for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance43

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

6

Last Release

481d ago

Major Versions

v1.2.0 → v2.0.02025-01-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

[![selviler](https://avatars.githubusercontent.com/u/56368718?v=4)](https://github.com/selviler "selviler (17 commits)")

---

Tags

phpsearchlaravelbrave

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/slvler-brave-search-api/health.svg)

```
[![Health](https://phpackages.com/badges/slvler-brave-search-api/health.svg)](https://phpackages.com/packages/slvler-brave-search-api)
```

###  Alternatives

[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[statamic-rad-pack/meilisearch

meilisearch search driver for Statamic

1661.7k](/packages/statamic-rad-pack-meilisearch)[omaressaouaf/query-builder-criteria

Define reusable query criteria for filtering, sorting, search, field selection, and includes in Laravel Eloquent models

282.4k](/packages/omaressaouaf-query-builder-criteria)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
