PHPackages                             rapidez/strapi - 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. rapidez/strapi

ActiveLibrary

rapidez/strapi
==============

Rapidez Strapi

4.0.0(11mo ago)42.9k3GPL-3.0-or-laterPHPPHP ^8.0

Since Oct 6Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/rapidez/strapi)[ Packagist](https://packagist.org/packages/rapidez/strapi)[ Docs](https://rapidez.io)[ RSS](/packages/rapidez-strapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (22)Used By (0)

Rapidez Strapi
==============

[](#rapidez-strapi)

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

[](#requirements)

A [Strapi](https://strapi.io) instance running, configured and filled with content types.

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

[](#installation)

```
composer require rapidez/strapi

```

Add the Strapi url to your `.env`:

```
STRAPI_URL=http://localhost:1337

```

### Routes

[](#routes)

Register some routes within `routes/web.php` and use the `strapi()` helper function to get the data. This function accepts the endpoint as parameter and just calls that endpoint and caches the response. For example:

```
Route::get('blog', function ($location) {
    return view('strapi.blog', ['data' => strapi('blogs')])
});

Route::get('blog/{slug}', function ($slug) {
    return view('strapi.blog-item', ['data' => strapi('blogs?slug='.$slug)[0]])
});
```

And use the data in your views. For example with `{{ $data->name }}` you'll get the content of the name field.

### Dynamic zones

[](#dynamic-zones)

When you're using a dynamic zone within your content type you can render them with a Blade directive:

```
@dynamiczone($data->content)

```

This tries to render views with the same name as the component and the data will be available with the `$data` variable.

There is also a possibility to pass extra data to the template. For this you can pass an array as the second parameter:

```
@dynamiczone($data->content, ['foo' => 'bar', 'article' => $data])

```

The above example makes the variables `$foo` and `$article` available in the template

Cache
-----

[](#cache)

By default all responses from Strapi will be cached for 1 hour. You can change that with `STRAPI_CACHE` in your `.env`

### Automatic cache clearing

[](#automatic-cache-clearing)

You can setup a webhook within Strapi which will be called when something changes. If you configure that with the cache clear url from Rapidez you don't have to worry about content not showing up after changes. See the [Rapidez cache docs](https://docs.rapidez.io/0.x/cache.html).

License
-------

[](#license)

GNU General Public License v3. Please see [License File](LICENSE) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance62

Regular maintenance activity

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.8% 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 ~67 days

Recently: every ~114 days

Total

21

Last Release

347d ago

Major Versions

0.10.1 → 1.0.02024-03-05

1.0.0 → 2.0.02024-05-28

2.0.0 → 3.0.02025-04-10

3.x-dev → 4.0.02025-06-05

PHP version history (4 changes)0.1.0PHP ^7.4

0.7.0PHP ^8.0|^8.1

1.0.0PHP ^8.0|^8.1|^8.2

3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (21 commits)")[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (8 commits)")[![BobWez98](https://avatars.githubusercontent.com/u/23509926?v=4)](https://github.com/BobWez98 "BobWez98 (2 commits)")[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (2 commits)")[![claudio-ferraro](https://avatars.githubusercontent.com/u/54107647?v=4)](https://github.com/claudio-ferraro "claudio-ferraro (2 commits)")[![quintenbuis](https://avatars.githubusercontent.com/u/36452184?v=4)](https://github.com/quintenbuis "quintenbuis (1 commits)")[![VincentBean](https://avatars.githubusercontent.com/u/3906942?v=4)](https://github.com/VincentBean "VincentBean (1 commits)")

---

Tags

hacktoberfestrapidez

### Embed Badge

![Health badge](/badges/rapidez-strapi/health.svg)

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

PHPackages © 2026

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