Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned. Use symfony/filesystem instead.
Generated on May 9, 2024 via composer

webmozart/path-util 2.3.0

A robust cross-platform utility for normalizing, comparing and modifying file paths.
Package summary
Share
1
issue
1
high severity
meta
1
1
license
2
MIT
Package created
26 Nov 2014
Version published
17 Dec 2015
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

1

1 high severity issue

high
via: webmozart/path-util@2.3.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
webmozart/assert@1.11.0
webmozart/path-util@2.3.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of webmozart/path-util 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
webmozart/assert1.11.019.58 kBMIT
prod

Visualizations

Frequently Asked Questions

What does webmozart/path-util do?

Webmozart/path-util, a robust, cross-platform utility, provides functions for efficiently handling and interacting with file paths and URLs. The main operations this package pertains to are normalizing, comparing, and modifying them. Being cross-platform makes this utility package widely applicable regardless of your operating system type.

How do you use webmozart/path-util?

To use the Webmozart/path-util package, you first need to install it via Composer by running the command composer require webmozart/path-util. Once installed, you can use the 'Path' and 'Url' classes provided by the package to handle file paths and URLs respectively.

Here are code usage examples for the Path class:

use Webmozart\PathUtil\Path;

echo Path::canonicalize('/var/www/vhost/webmozart/../config.ini');
// => /var/www/vhost/config.ini

echo Path::getFilename('/views/index.html.twig');
// => index.html.twig

And for the Url class:

use Webmozart\PathUtil\Url;

echo Url::makeRelative('http://example.com/css/style.css', 'http://example.com/puli');
// => ../css/style.css

Where are the webmozart/path-util docs?

The documentation for the Webmozart/path-util package can be found in their GitHub repository here. The documentation provides detailed information about the functions contained within the package. It's useful for users eager to learn more about how to interact with this utility. For further information on the API, you can check out the API Docs.