PHPackages                             delboy1978uk/composer-assets-plugin - 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. delboy1978uk/composer-assets-plugin

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

delboy1978uk/composer-assets-plugin
===================================

Composer plugin for installing of assets backported for PHP 5.3.

v0.9.5(7y ago)01.4kBSD-3-ClausePHPPHP &gt;=5.3.0

Since Dec 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/delboy1978uk/composer-assets-plugin)[ Packagist](https://packagist.org/packages/delboy1978uk/composer-assets-plugin)[ RSS](/packages/delboy1978uk-composer-assets-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (8)Used By (0)

Composer Assets Plugin
======================

[](#composer-assets-plugin)

Composer plugin for installing assets, backported for PHP 5.3.

[![Become a Patron!](https://camo.githubusercontent.com/ef7b855018f1f680eeba6fd1ac470b9c1971ef883b2f4b9fcf41034274510e3f/68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e2e706e67)](https://www.patreon.com/bePatron?u=9680759)

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

[](#installation)

Use [Composer](http://getcomposer.org/):

```
composer require delboy1978uk/composer-assets-plugin

```

Library requires PHP 5.3 or later.

Commands
--------

[](#commands)

- `composer refresh-assets` - refresh files in `assets` directory

Assets configuration
--------------------

[](#assets-configuration)

### Packages

[](#packages)

- `assets-files` in section `extra`
    - `true` - symlinks whole package directory
    - file path - symlinks one file or directory
    - list of file paths - symlinks files/directories

Example:

```
{
	"extra": {
		"assets-files": [
			"static/plugin.js",
			"static/plugin.css",
			"static/icons.png"
		]
	}
}
```

- `static/plugin.js` - symlinks file to `assets/org/package/plugin.js`
- `static/plugin.css` - symlinks file to `assets/org/package/plugin.css`
- `static/icons.png` - symlinks file to `assets/org/package/icons.png`

### Root package

[](#root-package)

- `assets-dir` - directory for installing of assets, default `assets`, relative to `vendor-dir`
- `assets-directory` - alias for `assets-dir`
- `assets-files` - list of asset files in incompatible packages, it overrides `assets-files` from installed packages
- `assets-strategy` - install strategy for assets
    - `auto` - select strategy by platform (default value)
    - `copy` - copy all assets, default strategy on Windows
    - `symlink` - create relative symlinks, default strategy on non-Windows platforms
- `assets-target` - target directory for specific packages, relative to `vendor-dir`, must be out of `assets-dir`

Example:

```
{
	"config": {
		"assets-dir": "public",
		"assets-files": {
			"org/package": true,
			"org/package2": "js/calendar.js",
			"org/package3": [
				"static/plugin.js",
				"static/plugin.css",
				"static/icons.png"
			]
		},
		"assets-target": {
			"ckeditor/ckeditor": "admin/wysiwyg"
		}
	}
}
```

- `org/package` - symlinks whole package directory to `public/org/package`
- `org/package2` - symlinks file `js/calendar.js` to `public/org/package2/calendar.js`
- `org/package3`
    - `static/plugin.js` - symlinks file to `public/org/package3/plugin.js`
    - `static/plugin.css` - symlinks file to `public/org/package3/plugin.css`
    - `static/icons.png` - symlinks file to `public/org/package3/icons.png`
- `ckeditor/ckeditor` - symlinks files to `admin/wysiwyg`

Default mapping
---------------

[](#default-mapping)

Plugin provides default mapping for selected incompatible packages. You can override this mapping in your `composer.json`.

List of packages with default mapping:

- `ckeditor/ckeditor`
- `components/jquery`
- `nette/forms`
- `o5/grido`

Where find supported packages?
------------------------------

[](#where-find-supported-packages)

Some libraries and packages support Composer by default. For other exists shim-repositories:

-
-

Always you can search packages on [Packagist](https://packagist.org/).

---

License: [New BSD License](license.md)
Author: Jan Pecha,

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~161 days

Recently: every ~188 days

Total

6

Last Release

2613d ago

PHP version history (2 changes)v0.9.0PHP &gt;=5.4.0

v0.9.5PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f20859ab2082170605b5961bb1f12493b087b08b7efa3ab0087ddbe0c9e0a94c?d=identicon)[delboy1978uk](/maintainers/delboy1978uk)

---

Top Contributors

[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (18 commits)")[![pdima88](https://avatars.githubusercontent.com/u/2329196?v=4)](https://github.com/pdima88 "pdima88 (1 commits)")

### Embed Badge

![Health badge](/badges/delboy1978uk-composer-assets-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/delboy1978uk-composer-assets-plugin/health.svg)](https://phpackages.com/packages/delboy1978uk-composer-assets-plugin)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
