Download the PHP package aweitian/config without Composer
On this page you can find all versions of the php package aweitian/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aweitian/config
More information about aweitian/config
Files in aweitian/config
Download aweitian/config
More information about aweitian/config
Files in aweitian/config
Vendor aweitian
Package config
Short Description 简单.NET文件导入到数组
License MIT
Homepage https://github.com/aweitian/config
Package config
Short Description 简单.NET文件导入到数组
License MIT
Homepage https://github.com/aweitian/config
Please rate this library. Is it a good library?
Informations about the package config
配置
Config组件用于完成网站配置项管理。
开始使用
安装组件
使用 composer 命令进行安装或下载源代码使用。 `
加载.env文件
参数为.env文件所在目录 `
一个简单的env内容如下: `
读取env文件内容
` 读取.env文件中的 DB_HOST配置,如果为空时使用 localhost
设置配置
`
加载所有文件
`
设置多个配置
`
检测配置
`
获取配置
如果想要获取配置文件的所有内容,只传递文件名就可以: `
获取子元素
获取配置文件使用 get 方法完成,参数为 ”配置文件名.配置项"的形式。 `
获取所有
也可以使用 all 方法获取所有配置,例如: `
排除批定字段
`
All versions of config with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package aweitian/config contains the following files
Loading the files please wait ....