Download the PHP package panakour/filament-flat-page without Composer
On this page you can find all versions of the php package panakour/filament-flat-page. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download panakour/filament-flat-page
More information about panakour/filament-flat-page
Files in panakour/filament-flat-page
Package filament-flat-page
Short Description This is my package filament-flat-page
License MIT
Homepage https://github.com/panakour/filament-flat-page
Informations about the package filament-flat-page
Filament Flat Page Plugin
FilamentFlatPage is a plugin for Filament that allows you to easily create and manage flat file pages with support for translations. It provides a simple way to add configurable, translatable pages to your Filament admin panel without the need for a database.
Features
- Easily create flat file pages with customizable forms
- Requires no database; data is stored in JSON files
- Built-in multilingual support for creating translatable content
- Seamless integration with Filament admin panel
- Language switcher in the admin page header (integrates with Spatie Translatable, if available)
Installation
You can install the package via composer:
Optionally, you can publish the config file with:
This will create a config/filament-flat-page.php
file where you can set your preferred options:
Optionally, you can publish the views using
Usage
-
Create a new page that extends
FlatPage
: -
Define your form schema in the
getFlatFilePageForm()
method. -
Specify the translatable fields in the
getTranslatableFields()
method. - Set the filename for storing the flat file data in the
getFileName()
method.
Using the FlatPage Facade
You can easily access your flat file data from anywhere in your application using the FlatPage
facade:
In Blade templates, you can use it like this:
Testing
There is a FlatPageTest.php file where you can run to check if tests are passing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Panagiotis Koursaris
- All Contributors
Show your support
Give a ⭐️ if you like this project or find it helpful!
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-flat-page with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
spatie/valuestore Version ^1.3