thefuntasty / ini-diff
该软件包已被废弃,不再维护。未建议替代软件包。
PHP 库,用于将 INI 文件与模板进行比较
1.1
2018-02-26 07:22 UTC
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is not auto-updated.
Last update: 2021-09-18 12:29:14 UTC
README
PHP 库,用于将 INI 文件与模板进行比较
安装
composer require thefuntasty/ini-diff
使用方法
vendor/bin/ini-diff [template] [ini]
其中 [ini]
是任何 INI 文件,可以通过 PHP 的 parse_ini_file
解析,而 [template]
是一个包含用于比较的架构和正则表达式的模板 INI 文件。
模板
key1 = value1 # Exact match
key2 = '~^[a-zA-Z0-9_\-]+$~' # Regular expression match, must start and end with `~` character
key3 = "~^(value3|value4)$~" # Another example of regular expression match
key4 = yes # Boolean support