pax_global_header00006660000000000000000000000064140225204130014503gustar00rootroot0000000000000052 comment=84b159194ecfd7eaa472280213976e96415433f7 link-2.0.1/000077500000000000000000000000001402252041300124405ustar00rootroot00000000000000link-2.0.1/.editorconfig000066400000000000000000000004171402252041300151170ustar00rootroot00000000000000; This file is for unifying the coding style for different editors and IDEs. ; More information at http://editorconfig.org root = true [*] charset = utf-8 indent_size = 4 indent_style = space end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true link-2.0.1/CHANGELOG.md000066400000000000000000000013701402252041300142520ustar00rootroot00000000000000# Changelog All notable changes to this project will be documented in this file, in reverse chronological order by release. ## [2.0.1](https://github.com/php-fig/link/compare/1.1.0...2.0.1) - 2021-02-04 ### Changed - **BREAKING** The type of the `$value` parameter of `EvolvableLinkInterface::withAttribute()` was widened to comply with the original specification. ## [2.0.0](https://github.com/php-fig/link/compare/1.1.0...2.0.0) - 2021-02-04 ### Changed - **BREAKING** All methods have return types ## [1.1.0](https://github.com/php-fig/link/compare/1.0.0...1.1.0) - 2021-02-04 ### Changed - All methods have typed parameters - Bump required PHP version to 8.0 ## 1.0.0 - 2016-11-16 Initial stable release; reflects accepted PSR-13 specification link-2.0.1/LICENSE.md000066400000000000000000000021611402252041300140440ustar00rootroot00000000000000# The MIT License (MIT) Copyright (c) 2016 PHP Framework Interoperability Group > 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. link-2.0.1/README.md000066400000000000000000000010441402252041300137160ustar00rootroot00000000000000Link definition interfaces ============== This repository holds all interfaces related to [PSR-13 (Link definition interfaces)][psr-url]. Note that this is not a Link implementation of its own. It is merely interfaces that describe the components of a Link. The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. [psr-url]: https://www.php-fig.org/psr/psr-13/ [package-url]: https://packagist.org/packages/psr/link [implementation-url]: https://packagist.org/providers/psr/link-implementation link-2.0.1/composer.json000066400000000000000000000012711402252041300151630ustar00rootroot00000000000000{ "name": "psr/link", "type": "library", "homepage": "https://github.com/php-fig/link", "description": "Common interfaces for HTTP links", "keywords": ["psr", "psr-13", "http", "http-link", "link", "rest"], "license": "MIT", "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "require": { "php": ">=8.0.0" }, "autoload": { "psr-4": { "Psr\\Link\\": "src/" } }, "suggest": { "fig/link-util": "Provides some useful PSR-13 utilities" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } link-2.0.1/src/000077500000000000000000000000001402252041300132275ustar00rootroot00000000000000link-2.0.1/src/EvolvableLinkInterface.php000066400000000000000000000047321402252041300203240ustar00rootroot00000000000000 */ public function getLinks(): iterable; /** * Returns an iterable of LinkInterface objects that have a specific relationship. * * The iterable may be an array or any PHP \Traversable object. If no links * with that relationship are available, an empty array or \Traversable MUST be returned. * * @param string $rel * The relationship name for which to retrieve links. * * @return iterable */ public function getLinksByRel(string $rel): iterable; }