Download the PHP package ruesin/utils without Composer
On this page you can find all versions of the php package ruesin/utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor ruesin
Package utils
Short Description Some commonly used helper classes
License Apache-2.0
Homepage https://github.com/ruesin
Package utils
Short Description Some commonly used helper classes
License Apache-2.0
Homepage https://github.com/ruesin
Please rate this library. Is it a good library?
Informations about the package utils
Utils
一些常用的辅助工具类。
Config
类似Laravel
的配置类,可以通过"."分割的方式设置、获取配置信息。
loadPath($path)
:加载目录下的PHP文件,设置为以文件名为key的Config的配置项loadFile($file_name)
:加载指定文件,设置文件名为keyset($key, $value)
:设置配置项$key
的值为$value
get($key, $default = null)
:获取$key
的配置值
假设目录/tmp/config/
目录下有文件mysql.php
:
使用:
Log
使用file_put_contents
的简单文件日志类,默认文件写入/tmp/
目录,可以通过初始化init($config)
更改配置。
All versions of utils with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
ext-posix Version *
ext-posix Version *
The package ruesin/utils contains the following files
Loading the files please wait ....