zendframework/zend-uri
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
zendframework/zend-escaper | 2.6.1 | 8.68 kB | BSD-3-Clause | prod | 1 |
zendframework/zend-validator | 2.13.0 | 295.62 kB | BSD-3-Clause | prod | 3 |
The zendframework/zend-uri is a PHP composer package that helps in the manipulation and validation of Uniform Resource Identifiers or URIs. This high-functional tool primarily assists other components like zend-http while being useful as a standalone utility. Its primary function is to ensure URI correctness and utility in customized applications.
To use the zendframework/zend-uri package, you should first install it via composer. Open your terminal and navigate to your project directory, then execute the following command:
$ composer require zendframework/zend-uri
Once the package is installed, you can utilize it within your PHP code to manipulate or validate any URIs you're working with. For example:
<?php
// You can create a new Uri and check some of its properties
use Zend\Uri\Uri;
$uri = new Uri('http://username:password@hostname:9090/path?arg=value#anchor');
echo $uri->getScheme(); // prints 'http'
echo $uri->getUser(); // prints 'username'
You can find the documentation for zendframework/zend-uri online at this URL: https://docs.zendframework.com/zend-uri/. This comprehensive and user-friendly guide provides detailed help on getting started with the package, its methods, and various ways to implement it efficiently in your projects.