dflydev/ant-path-matcher
最新稳定版本:v1.0.4
Composer 安装命令:
composer require dflydev/ant-path-matcher
包简介
Ant Path Matcher Utility
README 文档
README
An Ant path pattern matcher for PHP. Implementation kindly borrowed from Spring.
Requirements
- PHP 5.3+
Usage
<?php use dflydev\util\antPathMatcher\AntPathMatcher; $antPathMatcher = new AntPathMatcher(); if ($antPathMatcher->match('foo/**/baz/*.txt', 'foo/bar/baz/hello-world.txt')) { echo "This is true!\n"; }
License
This library is licensed under the New BSD License - see the LICENSE file for details.
Community
If you have questions or want to help out, join us in the #dflydev channel on irc.freenode.net.
Not Invented Here
There are other PHP ports of Ant-like pattern matching but most were either found to be incomplete, tied to actually walking a disk, or so heavily embedded into another larger project it was not feasible to use.
This implementation is purely string based and is based on the AntPathMatcher found in Spring.
统计信息
- 总下载量: 111.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-01-04