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

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

endroid/embed
=============

Endroid Embed

1.4.1(8mo ago)946.8k↓42.3%1MITPHPPHP ^8.4CI passing

Since Apr 8Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/endroid/embed)[ Packagist](https://packagist.org/packages/endroid/embed)[ Docs](https://github.com/endroid/embed)[ GitHub Sponsors](https://github.com/endroid)[ RSS](/packages/endroid-embed/feed)WikiDiscussions main Synced 2d ago

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

Embed
=====

[](#embed)

*By [endroid](https://endroid.nl/)*

[![Latest Stable Version](https://camo.githubusercontent.com/1cea9db5daa1119b6d88facf7a0f9c48d6ada1241a40397358468073e9454772/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64726f69642f656d6265642e737667)](https://packagist.org/packages/endroid/embed)[![Build Status](https://github.com/endroid/embed/workflows/CI/badge.svg)](https://github.com/endroid/embed/actions)[![Total Downloads](https://camo.githubusercontent.com/f87e1f5a895691350be6829fe82dd82c05e5b7c834a34eaeaa7d92a42117cefd/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e64726f69642f656d6265642e737667)](https://packagist.org/packages/endroid/embed)[![License](https://camo.githubusercontent.com/732935cda26cf2096b0949d624768300edd4310ef2bfd35cdadd45b4fe001762/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64726f69642f656d6265642e737667)](https://packagist.org/packages/endroid/embed)

Library for embedding external resources and reduce the number of requests.
Read the [blog](https://medium.com/@endroid/pdf-generation-in-symfony-3080702353b)for more information on why I created this extension.

Usage
-----

[](#usage)

This library helps you reduce the number of external resources to load by allowing you to embed external resources via a Twig extension. You can use this extension to embed resources like fonts, stylesheets, scripts etc.

```

@font-face {
    font-family: 'SCP';
    font-weight: normal;
    src: url('{{ embed('https://fontlibrary.org/scp.ttf') }}');
}

```

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require endroid/embed
```

When you use Symfony, the [installer](https://github.com/endroid/installer)makes sure that services are automatically wired.. If this is not the case you can find the configuration files in the `.install/symfony` folder.

Versioning
----------

[](#versioning)

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance69

Regular maintenance activity

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

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

Recently: every ~266 days

Total

14

Last Release

249d ago

PHP version history (8 changes)1.0.0PHP &gt;=7.1

1.0.2PHP &gt;=7.2

1.1.0PHP ^7.4||^8.0

1.1.1PHP ^7.3||^8.0

1.3.0PHP ^8.0

1.3.1PHP ^8.1

1.4.0PHP ^8.2

1.4.1PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (56 commits)")

---

Tags

endroidembed

### Embed Badge

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

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

PHPackages © 2026

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