PHPackages                             mvanvu/php-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. mvanvu/php-assets

AbandonedArchivedPhp

mvanvu/php-assets
=================

Php Assets Manager package

1.0(5y ago)021MITPHPPHP &gt;=7.1

Since Dec 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mvanvu/php-assets)[ Packagist](https://packagist.org/packages/mvanvu/php-assets)[ Docs](https://github.com/mvanvu/php-assets)[ RSS](/packages/mvanvu-php-assets/feed)WikiDiscussions master Synced 1w ago

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

php-assets
==========

[](#php-assets)

Deprecated
----------

[](#deprecated)

### Since the Php-form version 1.0.1 has removed the php-assets | Don't use this anymore

[](#since-the-php-form-version-101-has-removed-the-php-assets--dont-use-this-anymore)

Php Assets Manager package

```
{
	"require": {
		"mvanvu/php-assets": "~1.0"
	}
}
```

Alternatively, from the command line:

```
composer require mvanvu/php-assets
```

About
-----

[](#about)

- Using while you're handling Php and want to dynamic adding the css/js assets contents
- Auto minifies the assets contents (Thanks to matthiasmullie/minify)

Usage
-----

[](#usage)

```
use MaiVu\Php\Assets;

// Add assets
Assets::addFile('path/to/file.css');
Assets::addFile('path/to/file.js');

// OR
Assets::addFiles(
    [
        'path/to/file.css',
        'path/to/file.js',
    ]
);

// Inline assets
Assets::inlineCss('body {margin: 0; padding: 0}');
Assets::inlineJs('alert("It works")');

// Compress assets
Assets::compress();

// Render Header
echo Assets::output('css');
echo Assets::output('inlineCss');
echo Assets::output('js');
echo Assets::output('inlineJs');
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1992d ago

### Community

Maintainers

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

---

Top Contributors

[![mvanvu](https://avatars.githubusercontent.com/u/5796168?v=4)](https://github.com/mvanvu "mvanvu (13 commits)")

---

Tags

phpcssJSassets

### Embed Badge

![Health badge](/badges/mvanvu-php-assets/health.svg)

```
[![Health](https://phpackages.com/badges/mvanvu-php-assets/health.svg)](https://phpackages.com/packages/mvanvu-php-assets)
```

###  Alternatives

[tarunkorat/laravel-asset-cleaner

Safely detect and remove unused CSS, JS, SCSS and other assets from Laravel applications

733.2k1](/packages/tarunkorat-laravel-asset-cleaner)

PHPackages © 2026

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