PHPackages                             sympress/assets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sympress/assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sympress/assets
===============

WordPress asset management library with optional Symfony-kernel integration.

00PHP

Since Jun 8Pushed 2d agoCompare

[ Source](https://github.com/SymPress/assets)[ Packagist](https://packagist.org/packages/sympress/assets)[ RSS](/packages/sympress-assets/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SymPress Assets
===============

[](#sympress-assets)

Asset management for SymPress WordPress packages, plugins, and themes.

The package registers classic scripts, script modules, and styles through a Composer library. It can run standalone in WordPress or through the optional Symfony kernel integration.

Installation
------------

[](#installation)

```
composer require sympress/assets
```

Features
--------

[](#features)

- Scripts, script modules, and styles with one shared asset API
- Webpack manifest, Encore, array, and PHP file loaders
- Automatic versions from file paths or dependency extraction files
- Native script loading strategies: `defer`, `async`, `blocking`
- Style preload for non-critical CSS
- Resource hints for `preload`, `preconnect`, and `dns-prefetch`
- Protection from cache, minify, combine, defer, and delay optimizations
- Optional Symfony kernel integration with asset providers

Example
-------

[](#example)

```
