Download the PHP package darkghosthunter/passless without Composer

On this page you can find all versions of the php package darkghosthunter/passless. 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 passless

This package has been abandoned. If you need Passwordless Authentication, migrate to Laravel Passwordless Login.

Robert Gramner - Unsplash (UL) #as2iiiiFdqk

Latest Stable Version License Coverage Status Maintainability

Passless

Passwordless Authentication Driver for Laravel. Just add water.

Requirements

Check older releases for older Laravel versions.

What includes

Install

Just fire up Composer and require it into your Laravel project:

How it works

This guards extends the default SessionGuard and only overrides the authentication method to not check the password, only if the user exists by the given credentials (email or whatever keys you set in your form or controller).

To register your users without a password, allow in your migration files the password string to be nullable(). Alternatively, pass an empty string on registration.

In your login form, you can discard the password input and leave only the email or username.

This will allow users to login through an email (if they're are registered), and throw an auth error if it doesn't.

When the user signs-in, an email is dispatched. The Email contains a temporarily signed URL which directs the user to the Passless LoginController, which will login the user into your application.

How to use

Passless is easy to integrate into your application, but before start using it you should change some strings in your configuration to point your app to use this package.

Don't worry, it doesn't breaks your Laravel installation in any way.

1) Add the Guard Driver

Go into your config/auth.php and add passless as the driver for your guard.

Remember to set the correct guard (in this case, web) to use the passless driver in your Login and Register Controllers.

2) Disable the password validation

In your login form you shouldn't have the password input. If you're using the default Auth\LoginController class, you should override the validateLogin() method and disable the password validation.

3) Add the proper Login response

Since the user won't be logged in immediately into your application when your credentials are validated, you should return a view which Notifies the user to check his email with a message or alert.

While you are free to use any View to inform the user, you can just simply add a flash notification in your Login route, along with the proper markup to retrieve and show the notification in the view.

If you're using the default controller, add or replace this code:

Since there is no password check in the login form, you may want to add a throttler middleware like throttle:60,3 to your Login route to avoid mail asphyxiation.

Configuration

For fine tuning, publish the Passless configuration:

You should definitively edit this config file if:

The contents of the config file are self-explanatory, so check the comments over each setting key.

License

This package is licenced by the MIT License.


All versions of passless with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
illuminate/auth Version 5.8.*
illuminate/config Version 5.8.*
illuminate/http Version 5.8.*
illuminate/cookie Version 5.8.*
illuminate/session Version 5.8.*
illuminate/events Version 5.8.*
illuminate/notifications Version 5.8.*
illuminate/support Version 5.8.*
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 darkghosthunter/passless contains the following files

Loading the files please wait ....