slenix / veil
Authentication scaffolding for the Slenix Framework
Requires
- php: >=8.1
Requires (Dev)
None
Suggests
- slenix/framework: The Slenix framework this package is designed for.
Provides
None
Conflicts
None
Replaces
None
README
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:
- Stubs are copied into your project as real
.phpfiles - Routes are appended to
routes/web.php - 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.
