2017 © Pedro Peláez
 

library antglob

PHP Ant Glob

image

wjdhollow/antglob

PHP Ant Glob

  • Tuesday, July 14, 2015
  • by wjdhollow
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,243 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

antglob

Ant style globs for PHP

The AntGlob utility is a set of the syntax specified by https://ant.apache.org/manual/dirtasks.html. Ant patterns are used for matching files and directories, similar to glob patterns used in DOS or UNIX., (*1)

'*' matches zero or more characters, not including directory separators., (*2)

'?' matches a single character., (*3)

Patterns are considered relative paths, relative to the working directory. Only files found below the working directory are considered. The behavior of absolute patterns is loosely defined, so its usage is not recommended., (*4)

Matching is done per directory, meaning that the first pattern is matched, and the second and so forth. The whole pattern must be satisfied before it is considered a match. A common alternative to using glob style pattern matching is to apply a regex. An equivalent regex would be considered 'lazy' as opposed to 'greedy'., (*5)

'**' can be used to match multiple directory levels. This can be used to match a whole directory tree, or a file anywhere in the directory tree., (*6)

As a shorthand, any pattern ending in '/' has a '**' appended to it. Example, 'mydir' matches a directory named 'mydir', while 'mydir/' matches all files in the 'mydir' directory tree., (*7)

To install: composer require wjdhollow/antglob, (*8)

Command line utility: bin/antglob <directory> <glob_pattern>, (*9)

API:, (*10)

$glob = new AntGlob($pattern);, (*11)

$matches = $glob->isMatch($name);, (*12)

$pathnames = $glob->inDirectory($directory);, (*13)

The Versions

14/07 2015

dev-master

9999999-dev https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow

14/07 2015

0.0.5

0.0.5.0 https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow

14/07 2015

0.0.4

0.0.4.0 https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow

13/07 2015

0.0.3

0.0.3.0 https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow

13/07 2015

0.0.2

0.0.2.0 https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow

13/07 2015

0.0.1

0.0.1.0 https://github.com/wjdhollow/antglob

PHP Ant Glob

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by William Holloway

php glob wjdhollow