Download the PHP package techtailor/rpg without Composer
On this page you can find all versions of the php package techtailor/rpg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rpg
This package is a simple Laravel untility that allows you to generate complex passwords using a simple Facade.
Installation
Step 1: Install Through Composer
Step 2: Add the Service Provider (Skip this step for Laravel 5.5 or higher)
In the 'config/app.php' file -
Step 3: Add the Alias (Skip this step for Laravel 5.5 or higher)
In the 'config/app.php' file -
In Laravel 5.5 & higher the package will autoregister the service provider and the alias.
Usage
In order to use the included RPG Facade, import the following in your file
The RPG Facade comes with three basic methods - Generate
, Preset
and Decrypt
The Generate
method allows you to pass custom specifications for the generator.
Lets go into a bit detail about each of the specifications that can be provided
Example command for generating a password string of 16 characters with dashes using the 'lud (lowercase, uppercase, digits)' character set -
Example command for generating an encrypted password string of 16 characters with dashes using the 'lud (lowercase, uppercase, digits)' character set -
The Preset
method allows you to instantly select from any of the 4 preset specifications for the generator. You can also ad the encrypt modifier to the Preset method aswell for returning an encrypted Preset String.
Details of each preset -
The Decrypt
method allows you to decrypt any string/password encrypted by passing the encrypt modifier to the Generate or Preset method. Note : Only passwords encrypted by your laravel app can be decrypted.
Important Note
The passwords are encrypted using the Laravel App Key (which can be found in your .env file). If you change/modify your Laravel App Key, you will no longer be able to decrypt any previously encrypted strings.
Well that should be enough to get you up and running in no time.
Demo Site
You can check out the live demo of this package at [Currently Unavailable]
Changelog
Please see CHANGELOG for more information what has changed recently.
TODO
List of features or additional functionality we are working on (in no particular order) -
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.