slenix/veil

Authentication scaffolding for the Slenix Framework

Maintainers

Package info

github.com/claudiovictors/Veil

Language:CSS

pkg:composer/slenix/veil

Transparency log

Statistics

Installs: 58

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

v1.4.0 2026-06-24 05:26 UTC

This package is auto-updated.

Last update: 2026-07-24 05:41:01 UTC


README

Veil Logo

PHP Version Version Slenix Version License

About Veil

Veil is the official authentication scaffolding package for the Slenix Framework. Inspired by Laravel Breeze, it gives you a clean and minimal auth starter in seconds.

Veil is a code generator — it copies controllers, middlewares, views and migrations directly into your project, giving you full ownership of the generated code from day one.

What Veil provides out of the box:

  • Login and Register pages
  • AuthMiddleware and GuestMiddleware
  • Users migration
  • Beautiful Luna views with minimal CSS
  • Auth routes auto-appended to routes/web.php
  • Zero runtime overhead — install and forget

Installation

Install the package via Composer:

composer require slenix/veil

Then run the installer via the Celestial CLI:

php celestial veil:install

To overwrite already published files:

php celestial veil:install --force

What gets generated

After running veil:install, the following files are added to your project:

app/
├── Controllers/
│   └── AuthController.php
└── Middlewares/
    ├── AuthMiddleware.php
    └── GuestMiddleware.php

views/
└── auth/
    ├── layout.luna.php
    ├── login.luna.php
    ├── register.luna.php
    └── dashboard.luna.php

database/
└── migrations/
    └── xxxx_xx_xx_xxxxxx_create_users_table.php

routes/
└── web.php  ← auth routes appended automatically

After install

Run the migration to create the users table:

php celestial migrate

Then visit /login or /register in your browser.

How it works

Veil is purely a scaffolding tool. When you run veil:install:

  1. Stubs are copied into your project as real .php files
  2. Routes are appended to routes/web.php
  3. The package itself is no longer needed at runtime

This means Veil has zero runtime overhead — it is a dev-time tool, just like Laravel Breeze.

Requirements

Dependency Version
PHP >= 8.1
Slenix >= 2.5

Roadmap

  • Login / Register / Logout scaffolding
  • AuthMiddleware and GuestMiddleware
  • Beautiful Luna views
  • Users migration
  • Full auth() integration (Slenix 2.6)
  • Password reset flow
  • Email verification

Security Vulnerabilities

If you discover a security vulnerability within Veil, please report it responsibly by opening a private issue or contacting the maintainers.

All security vulnerabilities will be handled promptly.

License

Veil is open-source software licensed under the MIT License.