thephpleague / uri-src

URI manipulation Library
https://uri.thephpleague.com
MIT License
27 stars 8 forks source link

Getting the filesystem path from a file URI #124

Closed stof closed 11 months ago

stof commented 11 months ago

Feature Request

Q A
Package yes
New Feature yes
BC Break no

Proposal

The package currently exposes Uri::fromWindowsPath and Uri::fromUnixPath encapsulating the logic to create a file:// URI from a path to support all cases. It would be great to have a utility exposing the opposite operation.

nyamsprod commented 11 months ago

Might be something to add to the BaseUri class perhaps 🤔 . A PR for that is welcome too

nyamsprod commented 11 months ago

@stof I opened a PR to resolve your feature request ... let me know if the intended behaviour is OK for you. reviews and comments are welcomed. 😉