Skip to content

Releases: webmozart/path-util

2.3.0

17 Dec 08:43
Compare
Choose a tag to compare
  • added Url::makeRelative() for calculating relative paths between URLs
  • fixed Path::makeRelative() to trim leading dots when moving outside of
    the base path

2.2.3

05 Oct 10:50
Compare
Choose a tag to compare
  • fixed Path::makeRelative() to produce .. when called with the parent
    directory of a path

2.2.2

24 Aug 17:28
Compare
Choose a tag to compare
  • Path::makeAbsolute() does not fail anymore if an absolute path is passed
    with a different root (partition) than the base path

2.2.1

24 Aug 13:26
Compare
Choose a tag to compare
  • fixed minimum versions in composer.json

2.2.0

14 Aug 11:37
Compare
Choose a tag to compare
  • added Path::normalize()

2.1.0

14 Jul 16:09
Compare
Choose a tag to compare
  • Path::canonicalize() now turns ~ into the user's home directory on
    Unix and Windows 8 or later.

2.0.0

21 May 10:44
Compare
Choose a tag to compare
  • 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

1.1.0

19 Mar 10:59
Compare
Choose a tag to compare
  • 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")

1.0.2

22 Jan 11:53
Compare
Choose a tag to compare
  • 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

1.0.1

22 Jan 11:52
Compare
Choose a tag to compare
  • 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