Download the PHP package emanueleminotto/embedly without Composer
On this page you can find all versions of the php package emanueleminotto/embedly. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emanueleminotto/embedly
More information about emanueleminotto/embedly
Files in emanueleminotto/embedly
Informations about the package embedly
Embedly
Library for embed.ly APIs based on Guzzle 5.
API: emanueleminotto.github.io/Embedly
Install
Install the Embedly library adding emanueleminotto/embedly
to your composer.json or from CLI:
Read more about the Composer installation here: getcomposer.org/doc/00-intro.md
Usage
This library provides 3 API: embed.ly/docs/api.
Some APIs need an API key you can set in the constructor os using the setApiKey
method.
The second method of the constructor can be a Guzzle HTTP client to use as an alternative of the default one.
Embed
Options are available at http://embed.ly/docs/api/embed/arguments
For this method the $api_key
can be null.
Extract
Options are available at http://embed.ly/docs/api/embed/arguments
Display
The first argument can be NULL, crop
, resize
or fill
.
Options are available at
- http://embed.ly/docs/api/display/endpoints/1/display
- http://embed.ly/docs/api/display/endpoints/1/display/crop
- http://embed.ly/docs/api/display/endpoints/1/display/resize
- http://embed.ly/docs/api/display/endpoints/1/display/fill
Currently the url
attribute is required.
Twig Extension
In this library there's included a Twig extension to allow a simple integration with frameworks.
Functions prefix is: embedly_
, arguments are the same of the methods above.