Download the PHP package madkom/uri without Composer
On this page you can find all versions of the php package madkom/uri. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package uri
Short Description Uniform Resource Identifier (URI) and Uniform Resource Locator (URL)
License MIT
Informations about the package uri
Uniform Resource Identifier (URI) and Uniform Resource Locator (URL)
This library implements URI and URL specification and URI Templates, based on RFC3986 and RFC6570 (depends on external lib).
Features
This library can create objects like:
- Uri RFC3986 - includes wide abstraction with: Scheme, Authority, Path, Query, Fragment
- UriReference RFC3986 - can be resolved with valid Uri (eg.
$resolvedUri = $uriReference->resolve($uri);
) - UriTemplate RFC6570 - produces Uri or UriReference objects (depends on template)
Installation
Install with Composer
Requirements
This library requires PHP in ~7
version.
At this point this library depends on another own library madkom/collection and some external packages:
- rize/uri-template: for UriTemplate impl
- true/punycode: for IDNA domain names conversion
Usage
Parsing url string:
TODO Missing fragment impl yet.
Parsing and resolving UriReference:
Parsing isbn uri:
Creating URI object:
TODO
- [x] Implement Uri to string conversion
- [x] Implement fragment component
- [x] Replace IRI library with RFC Regex in
\Madkom\Uri\Parser
- [x] Implement additional parsing modes in
\Madkom\Uri\Parser\Query
for various languages (parameter duplicate problem) - [ ] Implement normalization
- [x] Implement UriReference based on RFC3986
License
The MIT License (MIT)
Copyright (c) 2016 Madkom S.A.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All versions of uri with dependencies
madkom/regex Version 1.*
rize/uri-template Version ^0.3.0
true/punycode Version ^2.0
madkom/collection Version 1.*