flatpack / flatpack
Flatpack: Administration panel for Laravel, ready to assemble.
Fund package maintenance!
faustoq
Requires
- php: ^8.1
- doctrine/dbal: ^3.6
- livewire/livewire: ^2.6
- maxeckel/livewire-editorjs: ^1.4
- rappasoft/laravel-livewire-tables: ^2.12
- symfony/yaml: ^6.0
- wireui/wireui: ^1.0
Requires (Dev)
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.22
- pestphp/pest-plugin-faker: ^1.0
- pestphp/pest-plugin-laravel: ^1.4
- pestphp/pest-plugin-livewire: ^1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
- dev-main
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/github_actions/dependabot/fetch-metadata-2.4.0
- dev-dependabot/github_actions/dependabot/fetch-metadata-2.3.0
- dev-dependabot/npm_and_yarn/elliptic-6.6.1
This package is auto-updated.
Last update: 2025-05-12 07:35:13 UTC
README
Flatpack
📦 Administration panel for Laravel, ready to assemble.
- Quickly create a CMS for your Eloquent models.
- Define components with simple and declarative YAML files.
- Build a complete administration panel for your Laravel app in seconds.
Flatpack makes building fully functional user interfaces for admin panels easier than ever: as easy as editing few lines of a YAML file.
Besides providing a rich set of already built components and a solid stack to build a secure and intuitive experience for the users, it offers a fast and flexible solution for developers who want to have fun, try out new things and save precious time building up the an administration panels.
Flatpack is a reactive full-stack app, built with TALL stack.
Quick Install
Install the package via composer:
composer require flatpack/flatpack
Publish the config file and compiled assets:
php artisan vendor:publish --tag="flatpack"
Note: To make sure that the public assets are always up-to-date, remember to add this command to the post-update-cmd
list in your composer.json
file.
"post-update-cmd": [ "@php artisan vendor:publish --tag=flatpack" ],
Usage
Generating Flatpack composition files for App\Models\Post
model...
php artisan make:flatpack Post
This command will create two files:
- A form template
/flatpack/posts/form.yaml
, that defines the posts form. - A list template
/flatpack/posts/list.yaml
, that defines the posts table with pagination.
Let's check the result, visit /backend/posts.
Now start assembling, grab the generated files and map your model's attributes as you need.
Examples
Defining a form:
title: Post model: App\Models\Post icon: book-open toolbar: save: type: button label: Save action: save style: primary shortcut: s main: title: label: Post Title placeholder: Your Post Title type: text body: type: block-editor sidebar: created_at: label: Created type: datetime-picker updated_at: label: Updated type: datetime-picker
Defining a list:
title: Post model: App\Models\Post icon: book-open order: 1 toolbar: create: label: New Post icon: plus link: create style: primary shortcut: enter columns: id: label: ID sortable: true invisible: true title: label: Title sortable: true searchable: true created_at: label: Created type: datetime format: "Y-m-d H:i:s" sortable: true updated_at: label: Updated type: datetime format: "Y-m-d H:i:s" sortable: true
⚙️ You can customise the yaml composition files by mapping your model's attributes, using components of differnt types and features: Data tables, text inputs, rich text editors, date pickers, tag pickers, searchable select menus, image upload, toggles and more.
Requirements
- PHP 8.x
- Composer
- Laravel 9.x
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.