Download the PHP package dennislindsey/tokenize without Composer
On this page you can find all versions of the php package dennislindsey/tokenize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dennislindsey/tokenize
More information about dennislindsey/tokenize
Files in dennislindsey/tokenize
Package tokenize
Short Description Tokenization Interface
License
Informations about the package tokenize
Tokenization
A convenient PHP package for consuming Tokenization APIs
Installation
The fastest way to get up and running is to install via composer, make sure you add the repository to your composer.json file before you require the package:
Laravel/Lumen
There is a service provider included for integration with the Laravel framework. This provider will publish the proper configuration files to their appropriate locations within the framework.
Laravel
To register the service provider in a Laravel project, add the following to the providers
array in config/app.php
:
Lumen
To register the service provider in a Lumen project, add the following to the providers
array in bootstrap/app.php
:
Now, when you execulte Laravel's vendor:publish
Artisan command, the configuration files will be published to
config/tokenization.php
.
Alternatively, you could simply copy-paste /path/to/your/vendor/directory/dennislindsey/tokenize/config/tokenization.php
to
config/tokenization.php
to achieve the same effect.
Note: you may need to install basicit/lumen-vendor-publish
if your Laravel/Lumen installation does not support the
vendor:publish
artisan command.
Usage
Tokenization
Initialize your tokenizer
Create a token
Validate a token
Get tokenized data
Delete a token
Errors and References
Each action call will return a reference ID that can be used to lookup a call in the provider (TokenEx) dashboard. Unsuccessful calls will also return an error describing the problem. Each can be accessed via:
Notes
This library is inspired by the work done by cliffom (https://github.com/cliffom/tokenex-php).
License
All code is open source under the terms of the [GNU GPL License](GNU GPL License)