folklore/laravel-folklore
| Install | |
|---|---|
composer require folklore/laravel-folklore |
|
| Latest Version: | v1.1.9 |
| PHP: | ^8.3 |
| Laravel: | 11 · 12 · 13 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Nov 13, 2026 |
| Links: | GitHub · Packagist |
laravel-folklore
The shared foundation of the Laravel sites built by Folklore: entities and repositories over Eloquent models, JSON columns with references to other models (through folklore/laravel-json-data), and opt-in modules for medias, pages, auth and third-party services.
Versions
| Version | Branch | Status | Requires |
|---|---|---|---|
| 2.x | v2.x (default) |
In development, released as alphas | PHP 8.3+, Laravel 12 or 13 |
| 1.x | v1.1 |
Maintained: fixes and security | PHP 8.3+, Laravel 11 to 13 |
Installation
2.x, during its pre-releases:
composer require folklore/laravel-folklore:^2.0@alpha folklore/laravel-json-data:^1.0@alpha
folklore/laravel-json-data is required by the core. Require it too while it has no stable release: a stability flag doesn't apply to the dependencies of a required package.
The modules are off by default and are turned on in config/site.php; each one suggests the packages it needs. See the architecture.
With the panneau module, a site's admin starts from the standard resources: pages with their blocks, users and the media library, which the site's own classes extend (the architecture):
namespace App\Panneau\Resources;
class Pages extends \Folklore\Panneau\Resources\Pages {}
folklore:install writes these classes, with the site's contracts, entities, models, repositories and block types, and wires them in config/site.php and App\Providers\PanneauServiceProvider. It skips the files that exist, so it can run again to add a resource:
php artisan folklore:install # pages, users and medias
php artisan folklore:install --only=medias # one resource
php artisan folklore:install --dry-run # what it would write
--force overwrites the classes that exist. php artisan vendor:publish --tag=folklore-stubs publishes its stubs, and those of the make:* commands, to change them.
1.x:
composer require folklore/laravel-folklore:^1.1
Documentation
- docs/: architecture, decisions, the plan of 2.0 (roadmap) and the upgrade guide from 1.1.
- CHANGELOG
- AGENTS.md: how to work on this repository.
License
MIT
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.9 | ^8.3 | ^11.0| | MIT | |
| v1.1.8 | ^8.3 | ^11.0| | MIT | |
| v1.1.7 | ^8.3 | ^11.0| | MIT | |
| v1.1.6 | ^8.3 | ^11.0| | MIT | |
| v1.1.5 | ^8.3 | ^11.0| | MIT | |
| v1.1.4 | ^8.3 | ^11.0| | MIT | |
| v1.1.3 | ^8.3 | ^11.0| | MIT | |
| v1.1.2 | ^8.3 | ^11.0| | MIT | |
| v1.1.1 | ^8.3 | ^11.0| | MIT | |
| v1.1.0 | ^8.3 | ^11.0| | MIT | |
| v0.2.2 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.1 | >=5.4.0 | ~5.0 | MIT | |
| v0.2.0 | >=5.4.0 | ~5.0 | MIT | |
| v0.1.3 | >=5.4.0 | ~5.0 | MIT | |
| v0.0.2 | >=5.4.0 | ~5.0 | MIT | |
| v0.0.1 | >=5.4.0 | ~5.0 | MIT |
Pre-releases (16)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.0.0-alpha.16 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.15 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.14 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.13 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.12 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.11 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.10 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.9 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.8 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.7 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.6 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.5 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.4 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.3 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.2 | ^8.3 | ^12.69| | MIT | |
| v2.0.0-alpha.1 | ^8.3 | ^12.69| | MIT |