All Projects → symfony → Web Link

symfony / Web Link

Licence: mit
The WebLink component manages links between resources. It is particularly useful to advise clients to preload and prefetch documents through HTTP and HTTP/2 pushes.

Projects that are alternatives of or similar to Web Link

Http Foundation
The HttpFoundation component defines an object-oriented layer for the HTTP specification.
Stars: ✭ 8,068 (+661.13%)
Mutual labels:  symfony, symfony-component, component
Translation
The Translation component provides tools to internationalize your application.
Stars: ✭ 6,196 (+484.53%)
Mutual labels:  symfony, symfony-component, component
Filesystem
The Filesystem component provides basic utilities for the filesystem.
Stars: ✭ 4,111 (+287.83%)
Mutual labels:  symfony, symfony-component, component
Polyfill Apcu
This component provides apcu_* functions and the APCUIterator class to users of the legacy APC extension.
Stars: ✭ 629 (-40.66%)
Mutual labels:  symfony, symfony-component, component
Routing
The Routing component maps an HTTP request to a set of configuration variables.
Stars: ✭ 7,080 (+567.92%)
Mutual labels:  symfony, symfony-component, component
Polyfill Intl Grapheme
This component provides a partial, native PHP implementation of the Grapheme functions from the Intl extension.
Stars: ✭ 690 (-34.91%)
Mutual labels:  symfony, symfony-component, component
Polyfill Intl Normalizer
This component provides a fallback implementation for the Normalizer class provided by the Intl extension.
Stars: ✭ 896 (-15.47%)
Mutual labels:  symfony, symfony-component, component
Polyfill Ctype
This component provides a partial, native PHP implementation for the Ctype extension.
Stars: ✭ 3,774 (+256.04%)
Mutual labels:  symfony, symfony-component, component
Polyfill Xml
This polyfill is deprecated. Use the symfony/polyfill-php72 package instead.
Stars: ✭ 11 (-98.96%)
Mutual labels:  symfony, symfony-component, component
Process
The Process component executes commands in sub-processes.
Stars: ✭ 6,942 (+554.91%)
Mutual labels:  symfony, symfony-component, component
Var Dumper
The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function that you can use instead of var_dump().
Stars: ✭ 6,833 (+544.62%)
Mutual labels:  symfony, symfony-component, component
Finder
The Finder component finds files and directories via an intuitive fluent interface.
Stars: ✭ 7,840 (+639.62%)
Mutual labels:  symfony, symfony-component, component
Messenger
The Messenger component helps application send and receive messages to/from other applications or via message queues.
Stars: ✭ 603 (-43.11%)
Mutual labels:  symfony, symfony-component, component
String
Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way.
Stars: ✭ 709 (-33.11%)
Mutual labels:  symfony, symfony-component, component
Workflow
The Workflow component provides tools for managing a workflow or finite state machine.
Stars: ✭ 418 (-60.57%)
Mutual labels:  symfony, symfony-component, component
Polyfill Php80
This component provides functions unavailable in releases prior to PHP 8.0.
Stars: ✭ 798 (-24.72%)
Mutual labels:  symfony, symfony-component, component
Dependency Injection
The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.
Stars: ✭ 3,635 (+242.92%)
Mutual labels:  symfony, symfony-component, component
Notifier
Sends notifications via one or more channels (email, SMS, ...).
Stars: ✭ 346 (-67.36%)
Mutual labels:  symfony, symfony-component, component
Css Selector
The CssSelector component converts CSS selectors to XPath expressions.
Stars: ✭ 6,928 (+553.58%)
Mutual labels:  symfony, symfony-component, component
Telegram Notifier
Provides Telegram integration for Symfony Notifier.
Stars: ✭ 30 (-97.17%)
Mutual labels:  symfony, symfony-component, component

WebLink Component

The WebLink component manages links between resources. It is particularly useful to advise clients to preload and prefetch documents through HTTP and HTTP/2 pushes.

This component implements the HTML5's Links, Preload and Resource Hints W3C's specifications. It can also be used with extensions defined in the HTML5 link type extensions wiki.

Getting Started

$ composer require symfony/web-link
use Symfony\Component\WebLink\GenericLinkProvider;
use Symfony\Component\WebLink\HttpHeaderSerializer;
use Symfony\Component\WebLink\Link;

$linkProvider = (new GenericLinkProvider())
    ->withLink(new Link('preload', '/bootstrap.min.css'));

header('Link: '.(new HttpHeaderSerializer())->serialize($linkProvider->getLinks()));

echo 'Hello';

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].