radic/laravel-support

此包已被废弃,不再维护。作者建议使用laradic/support包代替。

Laravel支持包

2.0.0 2015-08-01 00:57 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:27:16 UTC


README

Build Status GitHub Version Code Coverage Total Downloads License

Goto Documentation Goto API Documentation Goto Repository

版本 1.2

Laravel 5支持包。

查看所有功能和选项的文档(尚未提供..)

待办事项

  • 清理
  • 测试(字符串测试已完成,但位于包外部)

安装

Composer

"laradic/support": "~1.2"

Laravel

注意:如果需要通过IoC使用Filesystem类,则需要SupportServiceProvider

'Laradic\Support\SupportServiceProvider'

概述

用法 描述
对象 Object::first(['a', 'b']) 对象辅助函数
数字 Number::paddingLeft(['a', 'b']) 数字辅助函数
数组 Arrays::unflatten($arr, '.') 数组辅助函数
字符串 String::slug('Ha lo') 将Laravel、Underscore和Stringy函数合并为1
路径 Path::join('My', 'New', 'Path') 提供处理路径字符串的实用方法
文件系统 App::make('files')
new Filesystem()
额外的文件系统函数
模板解析器 new TemplateParser(Filesystem $files, $sourceDir) 将存根解析为文件

特性

特性 描述
DotArrayAccessTrait 将ArrayAccess功能实现到类中
EventDispatcherTrait 将事件调度器功能实现到类中
NamespacedItemResolverTrait 将命名空间功能实现到类中
以及其他一些,待定。

辅助函数

查看helpers.php文件以获取概述

版权/许可

版权 2015 Robin Radic - MIT许可