Download the PHP package phpsa/filament-headless-cms without Composer
On this page you can find all versions of the php package phpsa/filament-headless-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-headless-cms
Filament Headless CMS
Starting point for a headless CMS for filament - notes on how to use with api / non-api below
Installation
You can install the package via composer:
in the panel you are using
Usage
Within Filament
After running the Install Command, you will find a new Content Group and Sample Content Resources in your Filament Admin.
Templates
This package comes with basic page and blog type template. By creating and selecting your own templates, you are able to fully customize your pages.
To create your own Templates, extend the Phpsa\FilamentHeadlessCms\Contracts\PageTemplate
abstract class:
and register this in the panel provider: - you can choose to flush the sample templates or keep them with the flush param.
This will now appear under the content area and will allow you to create / edit / delete.
Template Functionality
being able to control the form in and of itself is great, but say you want to add something into the default areas: we have you covered.
here are a few items that can be overwritten
Plugin Customisation
you can customise using the following methods
Api Routes
api/fhcms/types
- will list the active template typesapi/fhcms/types?with_counts
- will list the active template types and count of published items.fhcms/content-pages/{type}
- type - is the slug, will return paginated listfhcms/content-pages/{type}/{slug}
- slug is the content item slug. - returns item in json format.
Performance
We will continuously look at ways of improving performance, From V1.1.0 - we will be caching the output of the content page for 24 hours at a time or until the record is updated.
Planned Features / Suggestions
- this is a new project and has room for growth and improvement, feel free to suggest enhancements or open pull requests.
Currently Planned
Search intergration with Scout- Improved internal references between templates.
- Improved testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-headless-cms with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.13.5
illuminate/contracts Version ^10.0|^11.0
motivo/filament-title-with-slug Version ^1.0
filament/spatie-laravel-tags-plugin Version ^3.2