Download the PHP package tradifylabs/laravel-craftile without Composer
On this page you can find all versions of the php package tradifylabs/laravel-craftile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tradifylabs/laravel-craftile
More information about tradifylabs/laravel-craftile
Files in tradifylabs/laravel-craftile
Package laravel-craftile
Short Description Laravel integration for the Craftile visual editor
License MIT
Homepage https://github.com/bishwajitsz/laravel-craftile
Informations about the package laravel-craftile
Laravel Craftile
Laravel integration for the Craftile visual editor - Build dynamic, block-based layouts with seamless editor integration.
This package provides Laravel integration for the Craftile Visual Editor, enabling you to create block-based content management systems with Blade templates.
It is a maintained fork of craftile/laravel, published by
TradifyLabs. The PHP namespace, service provider, facades, config keys, and publish tags are
unchanged from upstream, so it is a drop-in replacement.
Relationship to upstream
Only composer.json differs from upstream craftile/laravel v0.9.2 — the src/, config/, and
resources/ trees are identical. Two constraints are relaxed so the package can be used on newer
Laravel releases and with a floating craftile/core:
| Requirement | Upstream v0.9.2 | This package |
|---|---|---|
illuminate/support |
^11.0\|^12.0 |
^13.0 |
craftile/core |
self.version |
^0.9 |
Upstream pins craftile/core to self.version, which forces core and laravel to be released at
exactly matching version numbers and prevents depending on core ^0.9 with a newer laravel
integration. This fork decouples the two.
Because the namespace is unchanged, do not install this package alongside craftile/laravel —
they both provide Craftile\Laravel\* and would collide.
🚀 Installation
Install via Composer:
If craftile/laravel is already required, remove it in the same step so both packages are never
installed at once:
⚙️ Configuration
Publish the configuration file:
This will create a config/craftile.php file where you can customize:
- Blade directive names
- Component namespace
- Block compiler settings
- Cache configuration
📦 Creating Blocks
1. Block Class
Create a block by implementing the BlockInterface:
2. Block Template
Create the corresponding Blade template:
3. Register the Block
Register your block in a service provider:
🎯 Using Blocks in Templates
Blade Directives
Use blocks directly in your Blade templates:
Component Tags
Or use the component syntax:
JSON/YAML Templates
Create template files that can be rendered directly:
Then render in your route or controller:
🔧 Property Types
Craftile provides several property types for your blocks:
🎨 Working with Children
Blocks can accept and render child blocks:
🔧 Advanced Configuration
Custom Directive Names
Customize directive names in config/craftile.php:
Component Namespace
Change the component tag namespace:
All versions of laravel-craftile with dependencies
illuminate/support Version ^13.0
craftile/core Version ^0.9
stillat/blade-parser Version ^2.0
symfony/yaml Version ^7.0