Installation
Requirements
- PHP 8.2 or higher
- Laravel 11.x, 12.x or 13.x
Install via Composer
bash
composer require php-collective/laravel-djotPackage Discovery
Laravel's package auto-discovery will automatically register:
- The
LaravelDjotServiceProvider - The
Djotfacade alias
No manual configuration is required to get started.
Publishing the Config (optional)
If you want to customize the configuration, publish it to config/djot.php:
bash
php artisan vendor:publish --tag=djot-configVerify Installation
Add a simple test in any Blade view:
blade
@djot('*Hello* _world_!')This should render:
html
<p><strong>Hello</strong> <em>world</em>!</p>Next Steps
- Configuration — customize converter behavior
- Blade Usage — learn the available directives
- Djot Syntax — quick reference for Djot markup