dflydev/ant-path-matcher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-01-04