harlew-com/laravel-sleek

This package is abandoned and no longer maintained. The author suggests using the harrisonclewis/laravel-sleek package instead.

Cleaner component syntax for Laravel Blade

Maintainers

Package info

github.com/harrisonclewis/laravel-sleek

pkg:composer/harlew-com/laravel-sleek

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.0.4 2026-05-18 20:31 UTC

This package is auto-updated.

Last update: 2026-05-20 07:41:50 UTC


README

Laravel Sleek

Introduction

Cleaner component syntax for Laravel Blade.

With Laravel Sleek

<Layouts.App>
    <Form method="POST" action="{{ route('login') }}">
        <Form.Group>
            <Form.Label>Email</Form.Label>
            <Form.Input type="email" name="email" />
        </Form.Group>

        <Button type="submit">Sign in</Button>
    </Form>
</Layouts.App>

Without Laravel Sleek

<x-layouts.app>
    <x-form method="POST" action="{{ route('login') }}">
        <x-form.group>
            <x-form.label>Email</x-form.label>
            <x-form.input type="email" name="email" />
        </x-form.group>

        <x-button type="submit">Sign in</x-button>
    </x-form>
</x-layouts.app>

Installation

composer require harrisonclewis/laravel-sleek

Usage

PascalCase tags are transformed to Laravel's x-component syntax at compile time.

<x-button />                  →  <Button />
<x-user-profile />            →  <UserProfile />
<x-form.input />              →  <Form.Input />
<x-card.body class="p-4">     →  <Card.Body class="p-4">

Configuration

Publish the config file if you need to adjust defaults:

php artisan vendor:publish --tag=sleek-config
// config/sleek.php
return [
    'enabled'     => true,
    'ignore_tags' => [ /* additional tags to leave untouched */ ],
];

Requirements

  • PHP ^8.1
  • Laravel ^10.0|^11.0|^12.0|^13.0

License

MIT