fig/link-util
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
psr/link | 2.0.1 | 5.66 kB | MIT | prod |
fig/link-util is a common utility PHP package that is primarily designed to aid with the implementation of PSR-13 (PHP standard recommendation). This package does not offer a complete PSR-13 implementation but it equips developers with a set of utilities that could streamline the process of writing other implementations.
fig/link-util can be used by integrating it into your PHP projects through Composer, a package manager used for the PHP programming language. Here is how you can get started:
Install the package with Composer. If you don't have Composer, first install it and then run this command in your terminal:
composer require php-fig/link-util
Once installed, you can use the utilities provided by the package in your PHP files. For example, to use the Link
class:
<?php
use Fig\Link\Link
$link = new Link('payment', 'http://example.com');
This is a very basic example. The actual usage would depend on your specific project requirements. Also, remember to read about PSR-13 to understand better how to use this and other similar utilities.
The primary source of documentation for fig/link-util is found on the official PHP-FIG website, specifically under the PSR-13 section. This package is intended for developers who are implementing PSR-13, so referring to that PSR would be crucial. Further usage examples, tutorials or API references may not be available as this package is more of a utility kit helping with PSR-13 implementation rather than a fully-fledged library or framework. Although, you could also refer to the package's GitHub page https://github.com/php-fig/link-util.git for more information or to raise issues and feature requests.