filament-cms-api
API Support for Filament CMS Builder
يمتدّ من filament-cms
composer require tomatophp/filament-cms-apiالنجوم0
اللغةPHP
الرخصةMIT
آخر تحديث2026-06-22
اقرأني

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
bash
The routes are registered automatically. Registering the plugin on a panel is optional:
php
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
bash
php
Testing
bash
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
Please see SECURITY for more information about security.
Credits
License
The MIT License (MIT). Please see License File for more information.