radic / laravel-support
This package is abandoned and no longer maintained.
The author suggests using the laradic/support package instead.
Laravel support package
2.0.0
2015-08-01 00:57 UTC
Requires
- php: >=5.5.9
- danielstjules/stringy: 1.9.*
- illuminate/console: ~5.1
- illuminate/filesystem: ~5.1
- illuminate/support: ~5.1
- radic/tmp-underscore-php: ^1.3.2
- symfony/filesystem: ~2.7
- webmozart/path-util: ~1.0
Requires (Dev)
- laradic/dev: dev-master
This package is not auto-updated.
Last update: 2019-02-20 18:27:16 UTC
README
Version 1.2
Laravel 5 support package.
Check the documentation for all features and options (NA yet..)
Todo
- Cleanup
- Tests (String tests are done but located outside of the package)
Installation
Composer
"laradic/support": "~1.2"
Laravel
Note: The SupportServiceProvider
is only needed if you want to use the Filesystem class trough IoC.
'Laradic\Support\SupportServiceProvider'
Overview
Classes
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 |
Traits
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. |
Helpers
Check the helpers.php
file for an overview
Copyright/License
Copyright 2015 Robin Radic - MIT Licensed