Download the PHP package bhittani/path without Composer
On this page you can find all versions of the php package bhittani/path. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bhittani/path
More information about bhittani/path
Files in bhittani/path
Package path
Short Description Utilities for working with paths.
License MIT
Homepage https://github.com/kamalkhan/path
Informations about the package path
Path
Utilities for working with paths in PHP.
- Install
- Usage
- Sanitize
- Join
- Absolute
- Normalize
- Is Absolute
- Is Root
- Static Access
- Changelog
- Testing
- Contributing
- Security
- Credits
- License
Install
You may install this package using composer.
Usage
This packages offers some helpful utilities when working with paths.
Sanitize
Convert back slashes to forward slashes.
Join
Join partial paths.
This will also sanitize the paths under the hood.
Absolute
Convert a path to an absolute path.
The second (
boolean
) argument will forcely append the path togetcwd()
.
Normalize
Normalize is identical to join
but it ensures an absolute path.
Is Absolute
Determines whether a path is absolute or not.
Is Root
Determines whether a path is a root or not.
Any root path is also an absolute path. So
isAbsolute
will always be true whenisRoot
is true.
Static Access
A StaticPath
class is available.
Any of the public methods may be invoked by static access.
Changelog
Please see CHANGELOG for more information on what has changed.
Testing
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected]
instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see the License File for more information.