Download the PHP package leo76/laravel-react-auth without Composer

On this page you can find all versions of the php package leo76/laravel-react-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-react-auth

Laravel React Auth

Latest Version on Packagist Total Downloads PHP Version

A Laravel package that drops in a complete React + Inertia.js authentication system in minutes — login, register, and a protected dashboard, all ready to customise.


Features

Login with email, password & remember-me
Register with validation & password confirmation
Protected dashboard page
Logout with session invalidation
One-command install: php artisan react-auth:install
Tailwind CSS + React 18 + Inertia.js
Fully publishable views, config & migrations
Toggle registration on/off via config
Full PHPUnit feature test suite included

📋 Requirements

Dependency Version
PHP ^8.1
Laravel ^10.0 or ^11.0
Node.js ^18
inertiajs/inertia-laravel ^1.0

Installation

1 — Install via Composer

2 — Run the install command

This publishes the config, React pages, and migrations into your project.

3 — Run migrations

4 — Install JS dependencies and build

5 — Configure Inertia middleware

Laravel 11bootstrap/app.php :

Laravel 10app/Http/Kernel.php :

Set the root Blade view in config/inertia.php :


Available Routes

Method URL Route name Access
GET /auth/login react-auth.login Guest
POST /auth/login react-auth.login.post Guest
GET /auth/register react-auth.register Guest
POST /auth/register react-auth.register.post Guest
GET /auth/dashboard react-auth.dashboard Auth
POST /auth/logout react-auth.logout Auth

Visit /auth/login in your browser to get started.


Configuration

Publish the config file:

config/react-auth.php :


Customising the React pages

Files are copied to :

Edit freely — the package will never overwrite published files.


Publish individually


Testing

The test suite covers login, register, logout, dashboard access, validation, and the registration toggle.


Package Structure


Changelog

See CHANGELOG.md for recent changes.


🤝 Contributing

Pull requests are welcome! For major changes, please open an issue first.

  1. Fork the repository
  2. Create your branch: git checkout -b feature/my-feature
  3. Commit: git commit -m 'feat: add my feature'
  4. Push: git push origin feature/my-feature
  5. Open a Pull Request

📄 License

The MIT License (MIT). See LICENSE for more information.


Made with ❤️ for the Laravel community


All versions of laravel-react-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
illuminate/routing Version ^10.0|^11.0
illuminate/auth Version ^10.0|^11.0
inertiajs/inertia-laravel Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package leo76/laravel-react-auth contains the following files

Loading the files please wait ...