Download the PHP package rafalmasiarek/dashboard-kit-addon-content without Composer
On this page you can find all versions of the php package rafalmasiarek/dashboard-kit-addon-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rafalmasiarek/dashboard-kit-addon-content
More information about rafalmasiarek/dashboard-kit-addon-content
Files in rafalmasiarek/dashboard-kit-addon-content
Package dashboard-kit-addon-content
Short Description Content type management addon for dashboard-kit. Define content types via blueprints in admin_modules, auto-generates admin CRUD, and provides ContentRepository for public module access.
License BUSL-1.1
Informations about the package dashboard-kit-addon-content
dashboard-kit-addon-content
Blueprint-driven content type addon for rafalmasiarek/dashboard-kit.
Define content types via a content blueprint in any admin module — the addon auto-creates the database table, generates admin CRUD routes, and provides a ContentRepository for reading records in front-end modules.
Requirements
- PHP 8.2+
rafalmasiarek/dashboard-kit: *league/commonmark: ^2.0
Installation
The addon is auto-discovered by Dashboard::create() when the package is installed. No explicit register() call is needed.
Blueprint format
Add a content key to any admin module's module.php:
Field types
| Type | Description |
|---|---|
text |
Single-line text input |
richtext |
WYSIWYG editor (Quill) |
select |
Dropdown; requires options key |
date |
Date picker |
number |
Numeric input |
toggle |
Boolean checkbox |
All fields accept an optional width key (Bootstrap column 1–12).
Hooks
Admin routes
All routes are protected by Auth + CSRF + admin Role middleware.
| Route | Description |
|---|---|
GET {prefix}/{slug} |
List records |
GET {prefix}/{slug}/new |
Create form |
POST {prefix}/{slug} |
Save new record |
GET {prefix}/{slug}/{id}/edit |
Edit form |
POST {prefix}/{slug}/{id} |
Save updated record |
POST {prefix}/{slug}/{id}/delete |
Delete record |
Reading records in modules
Twig filter
Renders Markdown with HTML passthrough and {.class} attribute syntax (league/commonmark).
Auto-created tables
When table is omitted, the addon creates content_{slug} with:
id—INT UNSIGNED AUTO_INCREMENT PRIMARY KEYslug—VARCHAR(255) UNIQUEcreated_at,updated_at— timestamps
Adding a new field to the blueprint automatically adds the column via ALTER TABLE on next boot.
License
Business Source License 1.1 — see LICENSE. For alternative licensing, contact us.
All versions of dashboard-kit-addon-content with dependencies
rafalmasiarek/dashboard-kit Version ^4.1.1
slim/slim Version ^4.0
league/commonmark Version ^2.0