radic/laravel-support
最新稳定版本:2.0.0
Composer 安装命令:
composer require radic/laravel-support
包简介
Laravel support package
README 文档
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
统计信息
- 总下载量: 116
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-22