2017 © Pedro Peláez
 

library embed

Endroid Embed

image

endroid/embed

Endroid Embed

  • Sunday, July 15, 2018
  • by endroid
  • Repository
  • 1 Watchers
  • 3 Stars
  • 286 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 103 % Grown

The README.md

Embed

By endroid, (*1)

Latest Stable Version Build Status Total Downloads License, (*2)

Library for embedding external resources and reduce the number of requests.
Read the blog for more information on why I created this extension., (*3)

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., (*4)

<link rel="stylesheet" href="{{ embed(asset('/styles.css')) }}">

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

Installation

Use Composer to install the library., (*5)

bash $ composer require endroid/embed, (*6)

When you use Symfony, the 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., (*7)

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., (*8)

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., (*9)

The Versions

15/07 2018

dev-master

9999999-dev https://github.com/endroid/embed

Endroid Embed

  Sources   Download

MIT

The Requires

 

The Development Requires

endroid embed

14/04 2018

1.0.1

1.0.1.0 https://github.com/endroid/embed

Endroid Embed

  Sources   Download

MIT

The Requires

 

The Development Requires

endroid embed

08/04 2018

1.0.0

1.0.0.0 https://github.com/endroid/embed

Endroid Embed

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

endroid embed