{"id":16897704,"url":"https://github.com/endroid/embed","last_synced_at":"2026-04-06T00:02:28.889Z","repository":{"id":56977716,"uuid":"128633766","full_name":"endroid/embed","owner":"endroid","description":"Twig extension for embedding external resources","archived":false,"fork":false,"pushed_at":"2024-10-19T23:13:41.000Z","size":31,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T10:21:18.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://endroid.nl/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"endroid"}},"created_at":"2018-04-08T11:24:55.000Z","updated_at":"2024-10-20T09:26:18.000Z","dependencies_parsed_at":"2023-11-07T13:37:31.037Z","dependency_job_id":"ee5b5603-abae-4cac-ba04-d7c912a57147","html_url":"https://github.com/endroid/embed","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":0.05769230769230771,"last_synced_commit":"8feba31ebcc9fde0431ec59bf0cae3898ce9b3e8"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Fembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endroid","download_url":"https://codeload.github.com/endroid/embed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937751,"owners_count":20535124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:39:22.869Z","updated_at":"2026-04-06T00:02:28.834Z","avatar_url":"https://github.com/endroid.png","language":"PHP","funding_links":["https://github.com/sponsors/endroid"],"categories":[],"sub_categories":[],"readme":"# Embed\n\n*By [endroid](https://endroid.nl/)*\n\n[![Latest Stable Version](http://img.shields.io/packagist/v/endroid/embed.svg)](https://packagist.org/packages/endroid/embed)\n[![Build Status](https://github.com/endroid/embed/workflows/CI/badge.svg)](https://github.com/endroid/embed/actions)\n[![Total Downloads](http://img.shields.io/packagist/dt/endroid/embed.svg)](https://packagist.org/packages/endroid/embed)\n[![License](http://img.shields.io/packagist/l/endroid/embed.svg)](https://packagist.org/packages/endroid/embed)\n\nLibrary for embedding external resources and reduce the number of requests.\u003cbr /\u003e\nRead the [blog](https://medium.com/@endroid/pdf-generation-in-symfony-3080702353b)\nfor more information on why I created this extension.\n\n## Usage\n\nThis library helps you reduce the number of external resources to load by\nallowing you to embed external resources via a Twig extension. You can use this\nextension to embed resources like fonts, stylesheets, scripts etc.\n\n```php\n\u003clink rel=\"stylesheet\" href=\"{{ embed(asset('/styles.css')) }}\"\u003e\n\n\u003cstyle\u003e\n@font-face {\n    font-family: 'SCP';\n    font-weight: normal;\n    src: url('{{ embed('https://fontlibrary.org/scp.ttf') }}');\n}\n\u003c/style\u003e\n```\n\n## Installation\n\nUse [Composer](https://getcomposer.org/) to install the library.\n\n``` bash\n$ composer require endroid/embed\n```\n\nWhen you use Symfony, the [installer](https://github.com/endroid/installer)\nmakes sure that services are automatically wired.. If this is not the case you\ncan find the configuration files in the `.install/symfony` folder.\n\n## Versioning\n\nVersion numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible\nchanges will be kept to a minimum but be aware that these can occur. Lock\nyour dependencies for production and test your code when upgrading.\n\n## License\n\nThis bundle is under the MIT license. For the full copyright and license\ninformation please view the LICENSE file that was distributed with this source code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Fembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendroid%2Fembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Fembed/lists"}