Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Path Util Laravel Package

webmozart/path-util

Lightweight PHP utility for safe, cross-platform path handling. Normalize, join, resolve and compare filesystem paths, with helpers for absolute/relative paths and canonicalization. Useful for file operations and libraries needing consistent path logic.

View on GitHub
Deep Wiki
Context7
2.3.0
  • 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
  • fixed Path::makeRelative() to produce .. when called with the parent directory of a path
2.2.2
  • Path::makeAbsolute() does not fail anymore if an absolute path is passed with a different root (partition) than the base path
2.2.1
  • fixed minimum versions in composer.json
2.2.0
  • added Path::normalize()
2.1.0
  • Path::canonicalize() now turns ~ into the user's home directory on Unix and Windows 8 or later.
2.0.0
  • 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
  • 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
  • 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
  • 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
1.0.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor