anandaerditya/dotls
最新稳定版本:1.0.0
Composer 安装命令:
composer require anandaerditya/dotls
包简介
Package for reading and fetch dot-ls (.ls) config file into associative array.
README 文档
README
Description
Dotls, a PHP package for convert a .ls configuration file into readable config array.
Package Description
- Package Name : dotls
- Author : Ananda Erditya ( anandaerditya )
- Github URL : https://github.com/anandaerditya/dotls
- Language : PHP
- Licence : MIT
Requirements
- PHP Version 8.0 or higher
- PHP fileinfo extension
Installing Package
Use the following command to install the package via Composer Dependency Manager.
composer require anandaerditya/dotls
Using The Package
-
Create your
.lsconfiguration file.You can create your own
.lsfile to any directory inside your project. Make sure your.lsfile
contains at least one pair syntax as follows :foo:value foo_bar:value -
Register
.lsconfiguration file.Register your
.lsfile usingregister()method as follows :$dotls = ( new Dotls() )->register('path/to/your/.ls'); -
Using your
.lsconfiguration fileUse
ls()method to load your configuration into your project as follows :ls('foo'); ls('foo_bar');
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-26