Download the PHP package sympress/assets without Composer

On this page you can find all versions of the php package sympress/assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package assets


nav_order: 5

Output Filters

Output filters modify the final script or link tag.

Included Filters

Style::preload() requests AsyncStyleOutputFilter. Supply the page's intentional per-request CSP nonce through sympress_assets_csp_nonce (value, asset). When a nonempty nonce and WP_HTML_Tag_Processor are available, output contains a preload link plus a nonce-bearing script using addEventListener, with no onload attribute. The nonce must match the page's script-src policy; putting a nonce on a link does not authorize inline event handlers. The script handles already completed/cache-hit loads, and a noscript copy keeps the original stylesheet. Existing media, integrity, crossorigin and fetchpriority are preserved. Without a nonce the original blocking stylesheet is returned, so strict script-src-attr 'none' remains supported.

Inline files must satisfy the allowed canonical path/extensions and 32KB limit, including the actual read bytes. Raw JavaScript containing closing/opening script prefixes, HTML comment openings, or U+2028/U+2029 falls back to its external tag. There is no semantics-preserving universal rewrite for strings, regexps and tagged templates; external fallback keeps the exact program bytes. CSS closing style prefixes are escaped case-insensitively. Inline output retains nonce and removes external-only integrity/src/loading attributes.

For scripts, AsyncScriptOutputFilter and DeferScriptOutputFilter are deprecated. Use Script::async() or Script::defer() instead.

Custom Filter

Supplied SRI and request snapshots

Loader configuration and dependency JSON may provide integrity (space-separated sha256/384/512 base64 digests) and crossorigin (anonymous/use-credentials). Digest format/decoded length is validated and anonymous is the default. Hashes must come from a trusted build for the exact bytes served. The library does not synthesize integrity from URLs/versions or fetch remote files; no remote integrity guarantee is possible without supplied build metadata. Inline tags omit external integrity.

RequestFiles shares canonical path/stat/content/JSON snapshots across assets and loaders. Probing missing optional files leaves PHP's last-error state unchanged. Repeated reads and missing paths reuse a request snapshot, while allowed root policy decisions remain local to their policy context. Call SymPress\Assets\IO\RequestFiles::reset() at every request boundary in a long-running worker, and recreate per-request asset objects. Normal PHP request teardown already clears this memory. New/changed manifests and symlink targets are observed after reset; do not modify build files partway through a request. PHP dependency execution remains separately opt-in and size-bounded.

CSP preload requires an intentional page nonce via sympress_assets_csp_nonce; without it CSS stays blocking. Supplied build SRI and request-scoped file snapshots are documented in output filters. Long-running workers must reset RequestFiles and recreate request asset objects at each boundary.


All versions of assets with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-dom Version *
ext-json Version *
symfony/filesystem Version ^8.1.11
symfony/finder Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sympress/assets contains the following files

Loading the files please wait ...