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