PHPackages                             abetter/embed - 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. abetter/embed

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

abetter/embed
=============

A Better Laravel Embedding of Scripts &amp; Styles, for exceptionally fast web applications.

1.0.13(5y ago)02121MITPHP

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/abetterstory/abetter-embed)[ Packagist](https://packagist.org/packages/abetter/embed)[ RSS](/packages/abetter-embed/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (15)Used By (1)

A Better Embed
==============

[](#a-better-embed)

[![Packagist Version](https://camo.githubusercontent.com/a2b1c01d014b298b6b562b19e67cd53eed5247034bdfaa1141bdec95de7e6f18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616265747465722f656d6265642e737667)](https://packagist.org/packages/abetter/embed)[![Latest Stable Version](https://camo.githubusercontent.com/d79c17a864ef93cbe24c6207f6afa23506b3ab126c34a5cc85bf840113df8471/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f656d6265642f762f737461626c652e737667)](https://packagist.org/packages/abetter/embed)[![Total Downloads](https://camo.githubusercontent.com/cee39384ae6413642ff167f7c0df5ea20c757bcd14cda5cde3df34682447de2f/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f656d6265642f646f776e6c6f6164732e737667)](https://packagist.org/packages/abetter/embed)[![License](https://camo.githubusercontent.com/2b6b82e3d933a07261f94807843ce3510824de4960dff41360a98f39954997e0/68747470733a2f2f706f7365722e707567782e6f72672f616265747465722f656d6265642f6c6963656e73652e737667)](https://packagist.org/packages/abetter/embed)

ABetter Laravel Embedd is a package of directives for faster development of component-based web applications, with focus on scalable static caching.

---

Requirements
------------

[](#requirements)

- PHP 7.3+
- Composer 1.6+
- Laravel 6.0+

---

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

[](#installation)

Via Composer:

```
composer require abetter/embed
```

---

Directives
----------

[](#directives)

#### @style : Embedd sass/css in html source code

[](#style--embedd-sasscss-in-html-source-code)

```
@style('')
@style('menu.scss')

```

Embedded Sass/CSS files will be rendered as external files in development mode to support browsersync live, but will be embedded in html source on Stage/Production for better caching.

#### @script : Embedd js in html source code

[](#script--embedd-js-in-html-source-code)

```
@script('')
@script('menu.js')

```

Embedded JS files will be rendered as external files in development mode to support browsersync live, but will be embedded in html source on Stage/Production for better caching.

#### @svg : Embedd svg in html source code

[](#svg--embedd-svg-in-html-source-code)

```
@svg('')
@svg('/images/logo.svg')

```

---

Contributors
============

[](#contributors)

[Johan Sjöland](https://www.abetterstory.com/%5D)
Senior Product Developer: ABetter Story Sweden AB.

License
-------

[](#license)

MIT license. Please see the [license file](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~20 days

Recently: every ~34 days

Total

14

Last Release

1843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a82ce146c604f52fb87f37ecdbce1cab95301b4a60f3e07e36b9f720d2742c7?d=identicon)[abetter](/maintainers/abetter)

---

Top Contributors

[![sjoland](https://avatars.githubusercontent.com/u/5939589?v=4)](https://github.com/sjoland "sjoland (16 commits)")

### Embed Badge

![Health badge](/badges/abetter-embed/health.svg)

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

###  Alternatives

[october/rain

October Rain Library

1581.7M73](/packages/october-rain)[shopware/storefront

Storefront for Shopware

674.4M209](/packages/shopware-storefront)[mapbender/mapbender

Mapbender library

10418.0k6](/packages/mapbender-mapbender)[wapplersystems/ws-scss

Compiles SCSS to CSS at runtime with caching, TypoScript variables and EXT: import support

11144.8k7](/packages/wapplersystems-ws-scss)[nizsheanez/yii2-asset-converter

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

61169.7k6](/packages/nizsheanez-yii2-asset-converter)[winter/storm

Winter CMS Storm Library

46251.0k6](/packages/winter-storm)

PHPackages © 2026

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