Download the PHP package coderjp/verifier without Composer

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

Verifier (Laravel 5 Package)

Verifier is a package for Laravel 5 that sends out verification emails to users in order for them to prove their email is valid. Users will click a link in the email to validate their address.

Installation

Require this package with composer using the following command:

composer require coderjp/verifier

Then run composer install or composer update.

After updating composer, add the service provider to the providers array in config/app.php

'Coderjp\Verifier\VerifierServiceProvider',

Generate the config file for changing various settings. This can be found in config/verifier.php.

php artisan vendor:publish --provider=Coderjp\\Verifier\\VerifierServiceProvider

Make sure the tables config option is correct. By default the table used is users. Then run the following command to generate the migrations:

php artisan verifier:migration

Usage

Model

Add the VerifierUserTrait to the model you wish to verify against. This will usually be the User model.

Template

You will need to make a mail template for the welcome email to use. By default the config uses emails.welcome.

The variable $user will be passed to your template. This will be an array of the relevant user.

Verifying

Where you create a user, you can now call the sendVerification() method on the model. This will trigger an email to be sent to the user.

To verify a token you can use the verify() method like so:

If the code is valid, verify will set validated = true, remove the validation code from the database and return the related user. If the code is invalid null is returned.

Overriding

Some options may need more thought than a simple attribute, the following can be overwritten by declaring methods in your model

To: Name

This is the name of the recipient. By default it uses the name attribute of the model, however you can override it by declaring the following:

Email Subject

By default, the config option subject is used, however you can define the following method in the model:

License

Verifier is open-sourced software licensed under the MIT license


All versions of verifier with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/console Version ~5.0
illuminate/support Version ~5.0
illuminate/database Version ~5.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 coderjp/verifier contains the following files

Loading the files please wait ....