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

ActiveLibrary[API Development](/categories/api)

aw-studio/laravel-strapi
========================

01021[1 PRs](https://github.com/aw-studio/laravel-strapi/pulls)PHP

Since Apr 2Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Strapi
==============

[](#laravel-strapi)

A Laravel package to integrate with Strapi CMS, providing an elegant way to interact with Strapi models and components.

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

[](#installation)

You can install the package via Composer:

```
composer require aw-studio/laravel-strapi
```

Configuration
-------------

[](#configuration)

After installation, publish the configuration file:

```
php artisan vendor:publish --tag=laravel-strapi-config
```

Then, add the following environment variables to your `.env` file:

```
STRAPI_BASE_URL=https://your-strapi-url.com
STRAPI_CACHE_ACTIVE=true # Set to false to disable caching
STRAPI_CACHE_TTL=3600 # Cache duration in seconds
```

Strapi Models
-------------

[](#strapi-models)

You can create Strapi models using the following command:

```
php artisan make:strapi-model {name}
```

This will create a **SingleType** or **CollectionType** model in `App\Strapi\Models`.

### Querying Strapi Models

[](#querying-strapi-models)

You can query models fluently:

```
$post = Post::locale('de')
            ->where('Slug', $slug)
            ->populate([
                'Image' => [
                    'populate' => '*',
                ],
            ])
            ->first();
```

Strapi Components
-----------------

[](#strapi-components)

You can create Strapi components with the following command:

```
php artisan make:strapi-component {name?}
```

Each component represents a Strapi component (e.g., from dynamic zones). It consists of:

- A class file: `App\Strapi\Components\\ComponentName.php`
- A corresponding Blade view file

### Registering Components

[](#registering-components)

Components must be registered in the `config/laravel-strapi.php` configuration file.

### Populating Components

[](#populating-components)

You can populate all components of a **Content** dynamic zone like this:

```
$post = Post::locale('de')
            ->where('Slug', $slug)
            ->populateContent()
            ->first();
```

Rendering Components in Blade
-----------------------------

[](#rendering-components-in-blade)

You can render dynamic zone components in Blade templates using the `x-dynamiczone` component:

```

```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b2d65d58480dd7fdbf4f4593158cbd0634550ee9210c49957cc48c8a8ccaef6?d=identicon)[jannescb](/maintainers/jannescb)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aw-studio-laravel-strapi/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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