Splat

Glob-like file and pattern matching utility.

MIT License

Downloads
44.9K
Stars
108
Committers
6

Bot releases are visible (Hide)

Splat - v5.0.1 Latest Release

Published by PHLAK over 1 year ago

Fixed

  • Fixed some characters being improperly escaped within character groups
Splat - v5.0.0

Published by PHLAK over 1 year ago

Changed

  • Bumped minimum supported PHP version to 8.0

Fixed

  • Fixed character handling within character groups (Thanks @vlakoff!)
Splat - v4.0.1

Published by PHLAK almost 3 years ago

Fixed

  • Fixed Pattern::escape() not returning a string
Splat - v4.0.0

Published by PHLAK over 3 years ago

Changed

  • Refactored Glob to use static methods
  • Introduced the Pattern class

Detailed changelog: https://github.com/PHLAK/Glob/compare/3.1.0...4.0.0

Splat - v3.1.0

Published by PHLAK about 4 years ago

Added

  • Added lookahead assertions

Detailed changelog: https://github.com/PHLAK/Glob/compare/3.0.0...3.1.0

Splat - v3.0.0

Published by PHLAK over 4 years ago

Changed

  • Renamed library to "Splat" (phlak/splat)
  • Explicitly bumped minimum PHP version to 7.2 (this was already required by symfony/finder)

Detailed changelog: https://github.com/PHLAK/Splat/compare/2.1.0...3.0.0

Splat - v2.1.0

Published by PHLAK over 4 years ago

Changed

  • Internally cache Glob::toRegex() method (improves performance when calling the same Glob object)

Detailed changelog: https://github.com/PHLAK/Glob/compare/2.0.0...2.1.0

Splat - v1.0.0

Published by PHLAK over 4 years ago

Initial stable release.

Splat - v2.0.0

Published by PHLAK over 4 years ago

Added

  • Added Glob::in() method for retrieving a list of files in a directory matching a pattern
  • Added Glob::filter() and Glob::rejecet() methods for filtering arrays of strings by a glob pattern
  • Added Glob::escape() method for escaping glob pattern characters in a string
  • Added Glob::directorySeparator() method for overriding the directory separator

Changed

  • Use the OS configured directory separator for matching * and **
    • Forward slash (/) on Mac/Linux
    • Back slash (\) on Windows

Detailed changelog: https://github.com/PHLAK/Glob/compare/1.0.0...2.0.0

Splat - v0.1.0

Published by PHLAK over 4 years ago

First pre-release.