Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottLandsborough committed Sep 18, 2017
1 parent 697b4c4 commit cd5f509
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cd5f509

Please sign in to comment.