hamboldt/php-doc-reader
最新稳定版本:v1.0.2
Composer 安装命令:
composer require hamboldt/php-doc-reader
包简介
Reads configurations from comments in PHP, converting them from JSON to arrays.
README 文档
README
Reads configuration assets in objects and elements, just like in the example below:
composer require hamboldt/php-doc-reader
Example
<?php /** * Look this amazing configurable class. * @configure {"config_name":"config_value"} */ class MyConfigurableClass { /** * Look this amazing configurable property! * @configure {"config_name":"config_value"} */ public $property; } // array("config_name" => "config_value") PhpDocReader\Reader::getConfig('MyConfigurableClass'); // array("config_name" => "config_value") PhpDocReader\Reader::getConfig('MyConfigurableClass', 'property');
统计信息
- 总下载量: 4.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-07