Download the PHP package codenamegary/url-parser without Composer
On this page you can find all versions of the php package codenamegary/url-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download codenamegary/url-parser
More information about codenamegary/url-parser
Files in codenamegary/url-parser
Download codenamegary/url-parser
More information about codenamegary/url-parser
Files in codenamegary/url-parser
Vendor codenamegary
Package url-parser
Short Description Parse, merge and modify URLs while maintaining integrity of all parts.
License MIT
Package url-parser
Short Description Parse, merge and modify URLs while maintaining integrity of all parts.
License MIT
Please rate this library. Is it a good library?
Informations about the package url-parser
urlparser - 0.1.5 - BETA
The best little URL tool for PHP!
Features
- Fully tested
- Chainable methods
- PSR-0 autoload and PSR-1 compliant
- Friendly syntax for Segment, Query String and other URL part manipulation
Coming Soon
- Batch wrapper for processing multiple URLs
- Composer / Packagist publishing
Installation
Manually
Download the Master ( .zip .gz .bz2 )
- Extract to the location of your choosing
- Include url.php
- @include('path/to/extracted/files/src/codenamegary/urlparser/URL.php');
- OR use a PSR-0 compatible Autoloader of your choice
- Map namespace "codenamegary" => 'path/to/extracted/files/src/codenamegary'
Composer via Packagist
- In composer.json add "codenamegary/url-parser": "0.1.5-beta" to require
Docs
- PHPDocs are included in the repo under 'path/to/extracted/files/docs/index.html'
- Plenty of documentation and examples throughout the source in url.php
Usage Examples
Load a complex URL and merge in some query parameters.
Returns
Load a complex URL and get rid of some query parameters.
Returns
Get an instance of the URL parser for the page currently being visited
Returns
Full URL of the current page minus the URI segments and query string.
Swap a URI string
Returns
http://www.apple.com/bananas/coconut/raisin/elephant/giraffe
Put something in front of coconut
Returns
http://www.apple.com/bananas/lime/coconut/date/elephant/giraffe
Change the host and protocol using method chaining
Returns
ftp://www.microsoft.com/bananas/coconut/date/elephant/giraffe
All versions of url-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package codenamegary/url-parser contains the following files
Loading the files please wait ....