Download the PHP package rockz/email-auth-bundle without Composer

On this page you can find all versions of the php package rockz/email-auth-bundle. 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 email-auth-bundle

The EmailAuthBundle

This bundle provides a way to authenticate a registered user by email only. A magic link is send to the user where this request can be accepted or rejected.

build status

Attention: This bundle is currently not ready for production!

This bundle supports symfony 4 only.

Installation

1. Download the Bundle

2. Configuration

Configure the firewall by adding the rockz_email_auth key to it. Provide a user provider which should be used for the authentication procedure.

Import bundle specific routes.

3. Prepare your template

Insert this minimum form somewhere on your page.

The request must be a post, with the provided email_auth parameter containing the users email.

4. Update your database

Generate migration or update your database schema right away:

5. Configure your SwiftMailer

This bundle uses the SwiftMailer to send emails to the user which is provided by the configured user provider.

Documentation: SwiftMailer configuration

6. CSRF Protection (optional)

You can enable csrf protection for your login form.

Enable the csrf_protection under your firewall settings for rockz_email_auth.

Add the following part to your login form:

If you haven't required symfony/form you may do this by running

It contains twig's csrf_token helper method.

Configuration

Most of the bundle behaviour is configured inside the firewall configuration in the security section.

Example Setup

TBD.

The following part should explain how this bundle is supposed to be used.

Import routes for the authorization controller. Create that file (btw. you can name it how ever you want).


All versions of email-auth-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
symfony/security Version ^4.0
symfony/orm-pack Version ^1.0.4
doctrine/doctrine-bundle Version ^1.8.0
symfony/security-bundle Version ^4.0
symfony/twig-bundle Version ^4.0
symfony/swiftmailer-bundle Version ^3.2
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 rockz/email-auth-bundle contains the following files

Loading the files please wait ....