Skip to content

Installation

Requirements

  • PHP 8.2 or higher
  • Laravel 11.x, 12.x or 13.x

Install via Composer

bash
composer require markup-carve/laravel-carve

Package Discovery

Laravel's package auto-discovery will automatically register:

  • The LaravelCarveServiceProvider
  • The Carve facade 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-config

Verify 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

Released under the MIT License.