PHPackages                             quickshiftin/assetorderer - 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. quickshiftin/assetorderer

ActiveMagento2-module

quickshiftin/assetorderer
=========================

Ordering of CSS files for Magento2

1.1.4(6y ago)2624.0k—0%10[1 issues](https://github.com/quickshiftin/mage2-ordered-assets/issues)MITPHPPHP &gt;=5.4.0

Since Sep 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/quickshiftin/mage2-ordered-assets)[ Packagist](https://packagist.org/packages/quickshiftin/assetorderer)[ RSS](/packages/quickshiftin-assetorderer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

mage2-ordered-assets
====================

[](#mage2-ordered-assets)

Order assets (read: css tags) explicitly with an order attribute

Magento2 has no way to order *assets* out of the box. This extension allows you to specify an *order* attribute in *css* tags in layout XML files and layout updates in the admin UI.

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

[](#installation)

### Composer

[](#composer)

`composer require quickshiftin/assetorderer`

### Manual

[](#manual)

Download the repository and add it in your Magento2 installation under **app/code/Quickshiftin/Assetorderer**

### Magento commands

[](#magento-commands)

Once you've installed the code via composer or download, you need to run some Magento commands:

- `bin/magento module:enable Quickshiftin_Assetorderer`
- `bin/magento setup:upgrade`
- `rm -rf var/cache var/di var/generation var/page_cache && bin/magento setup:di:compile`

Usage
-----

[](#usage)

Suppose you want to add a custom CSS file, *css/home.css*, on your homepage. Ordinarilly you would enter this in the layout update editor

```

```

However, Magento most likely will place the generated *link* tag **before** the base CSS file, thus not honoring the cascade. With the extension installed you can enter the *css* tag with an arbitrary *order* attribute like so

```

```

Any tags without an explicit order will come as they appear normally (effectively treated like they have an order of 1).

### Unit Tests

[](#unit-tests)

To run the unit tests, in a working installation of Magento2, with the extension enabled

- `cp vendor/quickshiftin/assetorderer/phpunit.xml dev/tests/unit`
- `cd dev/tests/unit`
- `php ../../../vendor/phpunit/phpunit/phpunit`

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~212 days

Recently: every ~265 days

Total

6

Last Release

2467d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3586540e31fb7ddfa2e1492d850f5022421d778cb631a976c745b1ef2a21f97a?d=identicon)[quickshiftin](/maintainers/quickshiftin)

---

Top Contributors

[![quickshiftin](https://avatars.githubusercontent.com/u/96733?v=4)](https://github.com/quickshiftin "quickshiftin (34 commits)")[![rakibabu](https://avatars.githubusercontent.com/u/14089150?v=4)](https://github.com/rakibabu "rakibabu (1 commits)")[![RedEnzian](https://avatars.githubusercontent.com/u/22888010?v=4)](https://github.com/RedEnzian "RedEnzian (1 commits)")

---

Tags

cssmagento2order

### Embed Badge

![Health badge](/badges/quickshiftin-assetorderer/health.svg)

```
[![Health](https://phpackages.com/badges/quickshiftin-assetorderer/health.svg)](https://phpackages.com/packages/quickshiftin-assetorderer)
```

PHPackages © 2026

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