tooinfinity / flextra
Minimal Laravel Authentication with Inertia, React, Vue, Svelte, and nWidart Laravel Modules
Requires
- php: ^8.2|^8.3
- illuminate/console: ^11.0
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
- illuminate/validation: ^11.0
- symfony/console: ^7.0
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/framework: ^11.0
- laravel/pint: ^1.19
- orchestra/testbench: ^8.0|^9.0
- rector/rector: ^1.2
README
Laravel Authentication Breeze support with nWidart Laravel Modules with Frontend Frameworks (React, Vue, Svelte, Blade,API) and Tailwind CSS.
Project that inspired and used to build this package
- Laravel Breeze
- Laravel Modules nWidart/laravel-modules
- xavi7th/laravel-inertiajs-tailwindcss-starter
Flextra is a versatile Laravel package designed to simplify authentication scaffolding. It seamlessly integrates InertiaJS (React, Vue, Svelte), Blade, nWidart Laravel Modules, and Tailwind CSS, enabling you to build modular, scalable, and modern web applications effortlessly.
The name Flextra combines "Flex" (flexibility) and "Extra" (enhanced features), embodying the package's mission to deliver flexible and robust solutions for Laravel development.
Features
- Authentication Scaffolding: Provides a lightweight and modular authentication system for Laravel projects.
- InertiaJS Integration: Supports frontends built with React, Vue, and Svelte via InertiaJS.
- Blade Support: Offers traditional Blade views for projects that do not require frontend frameworks.
- nWidart Laravel Modules: Leverages modular architecture to enable scalable and maintainable applications.
- Tailwind CSS: Styled with modern and responsive design principles using Tailwind.
Installation
Install the package using Composer :
composer require tooinfinity/flextra
Usage
this Package is installed and setup laravel modules and breeze authentication with stack you prefer and Tailwind CSS automatically.
by default the name of the module is Auth
but you can change it by passing the name of the module as an options like this.
php artisan flextra:install [stack] --module=Authentications [--other-options]
Supported stacks: react, vue, svelte, blade and api
Options: --typescript, --ssr, --pest
php artisan flextra:install [stack] --options
Example
React Stack
php artisan flextra:install react
Vue Stack with options
php artisan flextra:install vue --typescript --ssr --pest
php artisan flextra:install vue --module=Authentications --typescript --ssr --pest
Testing is not implement yet
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.