PHPackages                             mbvienasbaitas/strapi-laravel-client - 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. [API Development](/categories/api)
4. /
5. mbvienasbaitas/strapi-laravel-client

ActiveLibrary[API Development](/categories/api)

mbvienasbaitas/strapi-laravel-client
====================================

Strapi Client wrapper for Laravel.

1.1.0(2y ago)102.0k↓33.3%MITPHPPHP ^8.1

Since Jan 23Pushed 2y agoCompare

[ Source](https://github.com/mbvienasbaitas/strapi-laravel-client)[ Packagist](https://packagist.org/packages/mbvienasbaitas/strapi-laravel-client)[ RSS](/packages/mbvienasbaitas-strapi-laravel-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Strapi Laravel Client library
=============================

[](#strapi-laravel-client-library)

[![Latest Version on Packagist](https://camo.githubusercontent.com/43114b0509c2a69bdd80af3a5e39a482cf6960aa3967b1b25374adaf4c53e94a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d627669656e61736261697461732f7374726170692d6c61726176656c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbvienasbaitas/strapi-laravel-client)[![Test Status](https://camo.githubusercontent.com/2d538a0fcfe27a5fc38bffac160c506056c52222b9c9c867834df8b5e7f12971/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d627669656e61736261697461732f7374726170692d6c61726176656c2d636c69656e742f72756e2d74657374732e79616d6c3f6c6162656c3d7465737473266272616e63683d6d61696e)](https://camo.githubusercontent.com/2d538a0fcfe27a5fc38bffac160c506056c52222b9c9c867834df8b5e7f12971/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d627669656e61736261697461732f7374726170692d6c61726176656c2d636c69656e742f72756e2d74657374732e79616d6c3f6c6162656c3d7465737473266272616e63683d6d61696e)[![Total Downloads](https://camo.githubusercontent.com/845d74fb66f9704f136c7e300c65920c73749af7a70744e71d9836e12a33bf46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d627669656e61736261697461732f7374726170692d6c61726176656c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mbvienasbaitas/strapi-laravel-client)

Laravel package to enable easier Strapi client management provided by [mbvienasbaitas/strapi-php-client](https://github.com/mbvienasbaitas/strapi-php-client) package.

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

[](#installation)

To get started, simply require the project using [Composer](https://getcomposer.org/).
You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation). which is required by [mbvienasbaitas/strapi-php-client](https://github.com/mbvienasbaitas/strapi-php-client)

```
composer require mbvienasbaitas/strapi-laravel-client
```

Usage
-----

[](#usage)

### Default client configuration

[](#default-client-configuration)

Default client can be configured via environment. Here is a list of available configuration options.

Environment variableDescriptionSTRAPI\_CLIENTDefault client configuration to be used. Defaults to `default`STRAPI\_ENDPOINTEndpoint url, eg.: `https://localhost:1337`STRAPI\_TOKENBearer token used for authentication.### Default client using facade

[](#default-client-using-facade)

```
use VienasBaitas\Strapi\Client\Contracts\Requests\Collection\IndexRequest;
use VienasBaitas\Strapi\Client\Laravel\Facades\Strapi;

$collection = Strapi::collection('pages');

$response = $collection->index(IndexRequest::make());
```

### Default client using injection

[](#default-client-using-injection)

```
use VienasBaitas\Strapi\Client\Client;
use VienasBaitas\Strapi\Client\Contracts\Requests\Collection\IndexRequest;

class BlogController
{
    public function index(Client $client)
    {
        $collection = $client->collection('pages');

        return $collection->index(IndexRequest::make());
    }
}
```

### Custom client using facade

[](#custom-client-using-facade)

```
use VienasBaitas\Strapi\Client\Contracts\Requests\Collection\IndexRequest;
use VienasBaitas\Strapi\Client\Laravel\Facades\Strapi;

$client = Strapi::client('custom');

$collection = $client->collection('pages');

$response = $collection->index(IndexRequest::make());
```

### Custom client using injection

[](#custom-client-using-injection)

```
use VienasBaitas\Strapi\Client\Contracts\Requests\Collection\IndexRequest;
use VienasBaitas\Strapi\Client\Laravel\Contracts\Factory;

class BlogController
{
    public function index(Factory $factory)
    {
        $collection = $factory->client('custom')->collection('pages');

        return $collection->index(IndexRequest::make());
    }
}
```

### Using custom client and request factory interfaces

[](#using-custom-client-and-request-factory-interfaces)

Custom client and request factory resolved implementations could be bound using built in resolver functionality. Place snippets shown below in your `ApplicationServiceProvider`.

```
use VienasBaitas\Strapi\Client\Laravel\Strapi;

Strapi::resolveRequestFactoryUsing(function () {
    // return \Psr\Http\Client\ClientInterface implementation
});

Strapi::resolveRequestFactoryUsing(function () {
    // return \Psr\Http\Message\RequestFactoryInterface implementation
});
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Edvinas Kručas](https://github.com/edvinaskrucas)
- [All Contributors](../../contributors)

Alternatives
------------

[](#alternatives)

- [dbfx/laravel-strapi](https://github.com/dbfx/laravel-strapi)
- [svnwa/laravel-strapi](https://github.com/svnwa/laravel-strapi)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community6

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 ~472 days

Total

2

Last Release

732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0802c23b9fd902a5c8a571164693f46ae1c83e0b2c470941f3ca8d5f146c41d?d=identicon)[edvinaskrucas](/maintainers/edvinaskrucas)

---

Top Contributors

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

---

Tags

clientlaravelstrapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mbvienasbaitas-strapi-laravel-client/health.svg)

```
[![Health](https://phpackages.com/badges/mbvienasbaitas-strapi-laravel-client/health.svg)](https://phpackages.com/packages/mbvienasbaitas-strapi-laravel-client)
```

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[macsidigital/laravel-zoom

Laravel Zoom package

268375.9k](/packages/macsidigital-laravel-zoom)[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[gemini-api-php/laravel

Gemini API client for Laravel

8915.7k](/packages/gemini-api-php-laravel)[sourcetoad/soapy

A Soap Client built for Laravel.

1294.4k2](/packages/sourcetoad-soapy)

PHPackages © 2026

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