Download the PHP package jenryollivierre/laranonce without Composer

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

Laranonce

About

Laranonce is a nonce generator for your laravel application.

Installation

Install via composer command composer require jenryollivierre/laranonce

Configuration

Publish the package's configuration file to configure options before starting to use the package. Use artisan command php artisan vendor:publish --tag=laranonce-config.

Configuration Options

How To Use

On your form input field, call the Laranonce\Facades\Nonce::generate() method, which accepts one parameter, which is an identifier for the nonce. Try to make the name as unique as possible i.e Laranonce\Facades\Nonce::generate('submit_cart_paypal_payment');

Then on the backend, you check by using the Laranonce\Facades\Nonce::verify($name, $nonce) method, which accepts to parameters. The first parameter is the name of the nonce action, and the 2nd parameter is the nonce value that was submitted with the request:

Alias

In your application config/app.php file, you can setup an alias to use in your view files.

'Nonce' => Laranonce\Facades\Nonce::class,

Clean Up

In order for the package to be a true nonce package, data is stored either in the database or file storage depending on the driver chosen to use. To clean up these files, take advantage of laravel task scheduling. See Task Scheduling Docs.

You can call the php artisan nonce:prune command which by defaults deletes all the expired nonces. You can supply the 'all' argument to delete all the nonces php artisan nonce:prune all.

In your task scheduling:


All versions of laranonce with dependencies

PHP Build Version
Package Version
No informations.
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 jenryollivierre/laranonce contains the following files

Loading the files please wait ....