PHPackages                             whitecube/laravel-flexible-content - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. whitecube/laravel-flexible-content

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

whitecube/laravel-flexible-content
==================================

Base library for repeated layout fields, content builders and other collection components

v0.0.1(1y ago)55031MITPHPPHP &gt;=8.0.0CI passing

Since Feb 16Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/whitecube/laravel-flexible-content)[ Packagist](https://packagist.org/packages/whitecube/laravel-flexible-content)[ RSS](/packages/whitecube-laravel-flexible-content/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

laravel-flexible-content
========================

[](#laravel-flexible-content)

This package's only purpose is to build custom repeated layout components, such as [Laravel Nova's Flexible Content field](https://github.com/whitecube/nova-flexible-content) or your own content builders and manageable component collections. It is meant to provide a tested and multi-purpose backend API that should be extended by specific components (regardless of their frontend stack).

Docs (under construction)
-------------------------

[](#docs-under-construction)

- Installation &amp; base use cases
- layouts registration
    - `register($layout, $limit)`
- get all registered layouts
    - `layouts()`
    - `layoutsMenu()`
- limiting layouts
    - `limit($instances)`
    - `$layout->limit($instances)`
- building instances
    - `build($data)`
    - `buildUsing($callback)`
    - `insert($key, $attributes, $index, $id)`
- serializing the flexible container's state
    - `serialize()`
    - `serializeAs($format)`
    - `serializeUsingFormat($format)`
    - `serializeUsing($callback)`
- get all inserted instances, and manipulate the LayoutCollection :
    - `instances()`
    - `instancesValues()`
    - `$instances->find($key)`
    - `$instances->whereKey($key)`
    - `$instances->whereKeyNot($key)`
    - `$instances->whereKeyIn($key)`
    - `$instances->whereKeyNotIn($key)`
- counting instances
    - `count($key = null)`

Testing
-------

[](#testing)

This library uses [PestPHP](https://pestphp.com/). If you're considering contributing, please make sure all existing tests are still valid and that your changes are fully covered **before submitting a PR**.

Once installed, run the tests using `./vendor/bin/pest`.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance64

Regular maintenance activity

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65% 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

Unknown

Total

1

Last Release

486d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8435657?v=4)[Whitecube](/maintainers/Whitecube)[@whitecube](https://github.com/whitecube)

---

Top Contributors

[![toonvandenbos](https://avatars.githubusercontent.com/u/5635557?v=4)](https://github.com/toonvandenbos "toonvandenbos (26 commits)")[![voidgraphics](https://avatars.githubusercontent.com/u/9298484?v=4)](https://github.com/voidgraphics "voidgraphics (12 commits)")[![theokbokki](https://avatars.githubusercontent.com/u/90846584?v=4)](https://github.com/theokbokki "theokbokki (2 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/whitecube-laravel-flexible-content/health.svg)

```
[![Health](https://phpackages.com/badges/whitecube-laravel-flexible-content/health.svg)](https://phpackages.com/packages/whitecube-laravel-flexible-content)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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