Laravel 5 support package.
Check the documentation for all features and options (NA yet..)
- Cleanup
- Tests (String tests are done but located outside of the package)
"laradic/support": "~1.2"
Note: The SupportServiceProvider
is only needed if you want to use the Filesystem class trough IoC.
'Laradic\Support\SupportServiceProvider'
Class | Usage | Description |
---|---|---|
Object | Object::first(['a', 'b']) |
Object helper functions |
Number | Number::paddingLeft(['a', 'b']) |
Number helper functions |
Arrays | Arrays::unflatten($arr, '.') |
Array helper functions |
String | String::slug('Ha lo') |
Combines Laravel, Underscore and Stringy functions into 1 |
Path | Path::join('My', 'New', 'Path') |
Provides utility methods for handling path strings |
Filesystem | App::make('files') new Filesystem() |
Extra filesystem functions |
TemplateParser | new TemplateParser(Filesystem $files, $sourceDir) |
Parse stubs into files |
Trait | Description |
---|---|
DotArrayAccessTrait | Implements ArrayAccess functionality into a class |
EventDispatcherTrait | Implements event dispatcher functionality into a class |
NamespacedItemResolverTrait | Implements namespace functionality into a class |
And some others, TBD. |
Check the helpers.php
file for an overview
Copyright 2015 Robin Radic - MIT Licensed