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 10, 2024 via composer

symfony/asset v7.0.0

Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
Package summary
Share
0
issues
1
license
1
MIT
Package created
10 Feb 2015
Version published
31 Oct 2023
Maintainers
1
Total deps
1
Direct deps
0
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
1 Packages, Including:
symfony/asset@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

0
All Dependencies CSV
β“˜ This is a list of symfony/asset 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/asset do?

The Symfony/Asset is a useful PHP package that manages the URL generation and versioning of web assets. These web assets can include CSS stylesheets, JavaScript files, and image files. This package allows for improved control and management of your web assets, which can be essential for complex web projects or high-traffic websites.

How do you use symfony/asset?

To make use of the Symfony/Asset package in your projects, you would usually start by installing the package via Composer:

composer require symfony/asset

After having successfully installed Symfony/Asset, you may manage your web assets by following the guideline below:

use Symfony\Component\Asset\Package;
use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy;

$package = new Package(new StaticVersionStrategy('v1'));

// In your CSS file linking
echo $package->getUrl('/image.png'); // Outputs: /image.png?v1

In this example, a new Package is created with a static version strategy of 'v1'. When the getUrl() method is called, it appends the version 'v1' to the file URL. This is particularly helpful when you need to enforce browser cache busting when your static assets like css or js files change.

Where are the symfony/asset docs?

The Symfony/Asset documentation provides the detailed guide on how to utilize this package effectively. Click here to get a comprehensive overview of the Symfony Asset Component. The documentation provides examples, best practices and extensive explanation on managing web assets.