PHPackages                             dawn/asset - 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. dawn/asset

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

dawn/asset
==========

php load fronted asset

1.0.1(7y ago)016MITPHPPHP &gt;=7.0

Since Nov 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fafucoder/asset)[ Packagist](https://packagist.org/packages/dawn/asset)[ RSS](/packages/dawn-asset/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Asset
=====

[](#asset)

Asset类的目的是前端资源的注册器，目的是为了管理资源依赖

Install
-------

[](#install)

```
$ composer install dawn/asset
```

Userage
-------

[](#userage)

```
$manager = AssetManager::getInstance();
$manager->register(array(
    'jquery' => array(
        'name' => 'jquery',
        'url' => 'http://localhost/examples/',
        'js' => array('jquery.min.js'),
        'css' => array('jquery.min.css'),
    ),
    'bootstrap' => array(
        'name' => 'bootstrap',
        'url' => 'http://localhost/examples/',
        'js' => array('bootstrap.min.js'),
        'css' => array('bootstrap.min.css'),
        'dependency' => array('jquery'),
    ),
));

$manager->enqueue('bootstrap');
```

License
-------

[](#license)

This project is under MIT License. See the [LICENSE](https://github.com/fafucoder/asset/blob/master/LICENSE) file for the full license text.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2741d ago

Major Versions

0.8 → 1.0.02018-11-11

### Community

Maintainers

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

---

Top Contributors

[![fafucoder](https://avatars.githubusercontent.com/u/16442491?v=4)](https://github.com/fafucoder "fafucoder (17 commits)")

---

Tags

asset

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dawn-asset/health.svg)

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

###  Alternatives

[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M41](/packages/fxp-composer-asset-plugin)[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[nizsheanez/yii2-asset-converter

Less, Sass, Scss and Phamlp converter for Yii2. No system requires. yii2-composer support, Less autoupdate, customizing of output directory

64167.5k6](/packages/nizsheanez-yii2-asset-converter)[orchestra/asset

Asset Component for Orchestra Platform

52177.4k4](/packages/orchestra-asset)

PHPackages © 2026

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