Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

web-link

> 数据库
Open source

Manages links between resources

1.4K stars0 likes1 views
WebsiteGitHub

About

Manages links between resources

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.

It also implements Web Linking (RFC 8288), the two link set document formats defined by Linkset (RFC 9264) and the Link-Template HTTP header field (RFC 9652).

Getting Started

bash
composer require symfony/web-link
php
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';

Sponsor

This package is looking for a backer.

Help Symfony by sponsoring its development!

Resources

  • Documentation
  • Contributing
  • Report issues and send Pull Requests in the main Symfony repository

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPcomponentdns-prefetchhttphttp2

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库