Download the PHP package spatie/url without Composer
On this page you can find all versions of the php package spatie/url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package url
Short Description Parse, build and manipulate URL's
License MIT
Homepage https://github.com/spatie/url
Informations about the package url
Parse, build and manipulate URLs
A simple package to deal with URLs in your applications.
Installation
You can install the package via composer:
Usage
Parse and transform a URL
Retrieve any part of the URL:
Transform any part of the URL:
Note the
Url
class is immutable.
Scheme
Transform the URL scheme.
Use a list of allowed schemes.
Note each scheme in the list will be sanitized
or pass the list directly to fromString
as the URL's scheme will be sanitized and validated immediately:
Query parameters
Retrieve and transform query parameters:
Path segments
Retrieve path segments:
PSR-7 UriInterface
Implements PSR-7's UriInterface
interface:
The league/uri
is a more powerful package than this one. The main reason this package exists, is because the alternatives requires non-standard php extensions. If you're dealing with special character encodings or need bulletproof validation, you're definitely better off using league/uri
.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Testing
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
- Sebastian De Deyne
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of url with dependencies
psr/http-message Version ^1.0 || ^2.0
spatie/macroable Version ^1.0 || ^2.0