PackageTrack
Sign in Get early access

webmozart/path-util

Abandoned; use symfony/filesystem. A robust cross-platform utility for normalizing, comparing and modifying file paths.

2.3.0 91M downloads/mo #1037 most downloaded on Packagist webmozart/path-util

What this package is like to depend on

Last release 11 years ago

no release in 18 months

Ships fairly regularly

a new release about every 2 months

Nearly every release is documented

notes for 10 of 11 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

11 releases · first in 2014

0 releases in the last 12 months

see the full history below

Release timeline

11 releases · Nov 2014 to Dec 2015
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 11
  1. 2.3.0 17 Dec 2015
    Release notes
    • added Url::makeRelative() for calculating relative paths between URLs
    • fixed Path::makeRelative() to trim leading dots when moving outside of
      the base path
    Open source →
  2. 2.2.3 05 Oct 2015
    Release notes
    • fixed Path::makeRelative() to produce .. when called with the parent
      directory of a path
    Open source →
  3. 2.2.2 24 Aug 2015
    Release notes
    • Path::makeAbsolute() does not fail anymore if an absolute path is passed
      with a different root (partition) than the base path
    Open source →
  4. 2.2.1 24 Aug 2015
    Release notes
    • fixed minimum versions in composer.json
    Open source →
  5. 2.2.0 14 Aug 2015
    Release notes
    • added Path::normalize()
    Open source →
  6. 2.1.0 14 Jul 2015
    Release notes
    • Path::canonicalize() now turns ~ into the user's home directory on
      Unix and Windows 8 or later.
    Open source →
  7. 2.0.0 21 May 2015
    Release notes
    • added support for streams, e.g. "phar://C:/path/to/file"
    • added Path::join()
    • all Path methods now throw exceptions if parameters with invalid types are
      passed
    • added an internal buffer to Path::canonicalize() in order to increase the
      performance of the Path class
    Open source →
  8. 1.1.0 19 Mar 2015
    Release notes
    • added Path::getFilename()
    • added Path::getFilenameWithoutExtension()
    • added Path::getExtension()
    • added Path::hasExtension()
    • added Path::changeExtension()
    • Path::makeRelative() now works when the absolute path and the base path
      have equal directory names beneath different base directories
      (e.g. "/webmozart/css/style.css" relative to "/puli/css")
    Open source →
  9. 1.0.2 12 Jan 2015
    Release notes
    • Path::makeAbsolute() fails now if the base path is not absolute
    • Path::makeRelative() now works when a relative path is passed and the base
      path is empty
    Open source →
  10. 1.0.1 03 Dec 2014
    Release notes
    • Added PHP 5.6 to Travis.
    • Fixed bug in Path::makeRelative() when first argument is shorter than second
    • Made HHVM compatibility mandatory in .travis.yml
    • Added PHP 5.3.3 to travis.yml
    Open source →
  11. 1.0.0 26 Nov 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive