Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 4, 2024 via composer

symfony/web-link v7.0.0

Manages links between resources
Package summary
Share
0
issues
1
license
2
MIT
Package created
10 Apr 2017
Version published
25 Jul 2023
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
psr/link@2.0.1
symfony/web-link@v7.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of symfony/web-link 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/link2.0.15.66 kBMIT
prod

Visualizations

Frequently Asked Questions

What does symfony/web-link do?

The Symfony/WebLink component is designed to manage links between resources for your PHP development. In particular, it serves to advise your clients to preload and prefetch documents via HTTP and HTTP/2 pushes. This component supports the HTML5's Links, Preload, and Resource Hints W3C's specifications. It can also integrate with extensions as defined in the HTML5 link type extensions wiki.

How do you use symfony/web-link?

In order to use Symfony/WebLink in your PHP project, first, install it via composer with the command: $ composer require symfony/web-link. Then, you can utilize the component in your PHP code. Here is an example:

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';

This example shows how you to use Symfony/WebLink to serialize a HTTP header link with the preload link relation type and the target URI being '/bootstrap.min.css'. This instructs the browser to preload the bootstrap stylesheet.

Where are the symfony/web-link docs?

Comprehensive documentation and guidance on the Symfony/WebLink are available on the official Symfony Documentation site. You may access it directly here: Symfony WebLink Documentation. For addressing issues or contributing to further development, you can interact within the main Symfony repository on GitHub.