From cd5f509dfbcdb1e8c8e099717e0cd50714c19b11 Mon Sep 17 00:00:00 2001 From: Elliott Landsborough Date: Mon, 18 Sep 2017 03:58:13 +0100 Subject: [PATCH] Update Readme --- README.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 48dafea..35ce0c4 100755 --- a/README.md +++ b/README.md @@ -14,12 +14,26 @@ - Currently only supports integers from 1 to 100000000000000000000000000000 (on 64 bit machines) #### Installation - - - composer.json - "elliottlan/laravel-baser": "dev-master" - - Providers - 'Elliottlan\LaravelBaser\LaravelBaserServiceProvider' - - Aliases - 'Baser' => 'Elliottlan\LaravelBaser\Facades\Baser', - - ??? - - Profit. +1. Include the composer package +``` +composer require elliottlan/laravel-baser +``` +2. Add this line to 'Providers' in config/app.php +``` +Elliottlan\LaravelBaser\LaravelBaserServiceProvider::class, +``` +3. Add this line to 'Aliases' in config/app.php +``` +'Baser' => Elliottlan\LaravelBaser\Facades\Baser::class, +``` +4. Use 'Base' at the top of a controller +``` +use Baser; +``` +5. Try an example out +``` +echo Baser::getTokenFromInt(436432278698); // 7GnTmBA +``` #### Usage examples