PHPackages                             octoper/statamic-inline-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. octoper/statamic-inline-assets

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

octoper/statamic-inline-assets
==============================

Inline CSS or JS file for Statamic 3

4.0.3(5y ago)669.2k6[6 PRs](https://github.com/octoper/statamic-inline-assets/pulls)MITPHPPHP &gt;=7.4

Since Apr 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/octoper/statamic-inline-assets)[ Packagist](https://packagist.org/packages/octoper/statamic-inline-assets)[ GitHub Sponsors](https://github.com/octoper)[ RSS](/packages/octoper-statamic-inline-assets/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (3)Versions (13)Used By (0)

[![Latest Version](https://camo.githubusercontent.com/753d884a6fb06cec60476804295082d8fa266bfa999a2e31afbe5cfc24dcd8e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f63746f7065722f73746174616d69632d696e6c696e652d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://github.com/octoper/statamic-inline-assets/releases)[![Statamic 3.0+](https://camo.githubusercontent.com/3177bcd80a57834737f2b6df995a4c44fec125c349833aebbbb6a12a3539d492/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666c61742d737175617265266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/3177bcd80a57834737f2b6df995a4c44fec125c349833aebbbb6a12a3539d492/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666c61742d737175617265266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)

Inline assets
=============

[](#inline-assets)

> **Looking for maintainers**: As I'm not using Statamic these days and I don't have a the time to maintain the package I'm looking for anyone who want to take the ownerhip of it! You can reach out via email

> Inline assets for Statamic

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

[](#installation)

Require it using Composer.

```
composer require octoper/statamic-inline-assets

```

Inline Asset tag
----------------

[](#inline-asset-tag)

Inline assets will inline your CSS or JS file to your HTML, or inline a file encoded with base64.

Inline assets can help you speed of your Statamic website by inlining critical CSS you can check more about that by reading this article [Extract critical CSS](https://web.dev/extract-critical-css/)

Templating
----------

[](#templating)

Pass a path to your file from the public directory to `inline_assets` tag.

```

{{ inline_assets:css src="css/site.css" }}

```

or

```

{{ inline_assets:js src="js/site.js" }}

```

You can also minify your js or css assets.

```

{{ inline_assets:js minify="true" src="js/site.js" }}

```

You usually got a chicken or the egg problem with critical css, so you can ignore if missing

```

{{ inline_assets:css ignore-missing="true" src="css/site.css" }}

```

You can also inline your file as an base64 encoded data stream, for example taking your favicon and including it inline.

```

```

You usually got a chicken or the egg problem with critical css, so you can ignore if missing

```

```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Vaggelis Yfantis](https://github.com/octoper)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 76.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 ~65 days

Total

5

Last Release

1956d ago

Major Versions

2.0 → 3.02020-07-29

3.0 → 4.0.22020-11-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/68fe70ec9a3d1aae74cdf605e12d121817b1d387ecca178e3a76b3993dee29d0?d=identicon)[octoper](/maintainers/octoper)

---

Top Contributors

[![octoper](https://avatars.githubusercontent.com/u/6823226?v=4)](https://github.com/octoper "octoper (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![dimitri-koenig](https://avatars.githubusercontent.com/u/4375825?v=4)](https://github.com/dimitri-koenig "dimitri-koenig (1 commits)")[![jasonvarga](https://avatars.githubusercontent.com/u/105211?v=4)](https://github.com/jasonvarga "jasonvarga (1 commits)")

### Embed Badge

![Health badge](/badges/octoper-statamic-inline-assets/health.svg)

```
[![Health](https://phpackages.com/badges/octoper-statamic-inline-assets/health.svg)](https://phpackages.com/packages/octoper-statamic-inline-assets)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)

PHPackages © 2026

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