Download the PHP package tomatophp/filament-cms-api without Composer
On this page you can find all versions of the php package tomatophp/filament-cms-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomatophp/filament-cms-api
More information about tomatophp/filament-cms-api
Files in tomatophp/filament-cms-api
Package filament-cms-api
Short Description Read-only JSON API for TomatoPHP Filament CMS posts and categories
License MIT
Informations about the package filament-cms-api

Filament CMS Builder APIs
Read-only JSON API for TomatoPHP Filament CMS posts and categories.
Requirements
| Package version | Filament CMS | Filament | Laravel | PHP |
|---|---|---|---|---|
| 5.x | 5.x | 5.x | 12.x, 13.x | 8.2+ |
Installation
The routes are registered automatically. Registering the plugin on a panel is optional:
Endpoints
All endpoints are GET, return API resources and live under the api/cms prefix.
| Endpoint | Description |
|---|---|
/api/cms/posts |
Published posts (paginated). Filters: type, category (slug), tag (slug), trend=1, search, per_page |
/api/cms/posts/{slug} |
A published post with its categories, tags and images |
/api/cms/categories |
Active categories (paginated). Filters: for, type, menu=1, root=1, per_page |
/api/cms/categories/{slug} |
An active category with its active children |
Only posts with is_published and a publish date in the past are returned. Translatable fields use the app locale; add ?locale=ar to switch it per request.
Configuration
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
Please see SECURITY for more information about security.
Credits
- Fady Mondy
License
The MIT License (MIT). Please see License File for more information.