PHPackages                             emanueleminotto/embedly - 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. [API Development](/categories/api)
4. /
5. emanueleminotto/embedly

ActiveLibrary[API Development](/categories/api)

emanueleminotto/embedly
=======================

Library for embed.ly APIs

1.1.0(11y ago)21.5k3MITPHP

Since Jan 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EmanueleMinotto/Embedly)[ Packagist](https://packagist.org/packages/emanueleminotto/embedly)[ RSS](/packages/emanueleminotto-embedly/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (3)

Embedly
=======

[](#embedly)

[![Build Status](https://camo.githubusercontent.com/f207697e95592303250e81137bb77e4a5efe896465b27b3c26c406c952b1280f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456d616e75656c654d696e6f74746f2f456d6265646c792e7376673f7374796c653d666c6174)](https://travis-ci.org/EmanueleMinotto/Embedly)[![SensioLabs Insight](https://camo.githubusercontent.com/6df00745778966b4325d561d00d01e9e3c84219ef5b72322ed5fa444be3c15cb/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f36643632303765312d353334372d343065632d393864392d3264373563646132636137642e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/6d6207e1-5347-40ec-98d9-2d75cda2ca7d)[![Coverage Status](https://camo.githubusercontent.com/63ae3cc2f7c158c22909bb29583860b0baecd11f104cbdc56a1b784bff9516af/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f456d616e75656c654d696e6f74746f2f456d6265646c792e7376673f7374796c653d666c6174)](https://coveralls.io/r/EmanueleMinotto/Embedly)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b8763584c4f3988b09ae3acc1a2602f66c1db846e40bc47ac8c73626345b14f2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456d616e75656c654d696e6f74746f2f456d6265646c792e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/EmanueleMinotto/Embedly/)[![Total Downloads](https://camo.githubusercontent.com/652bafa87abe2c7eda1324978811f2e5061c1abb21a982e73ddaddac0fe4896d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656d616e75656c656d696e6f74746f2f656d6265646c792e7376673f7374796c653d666c6174)](https://packagist.org/packages/emanueleminotto/embedly)

Library for [embed.ly APIs](http://embed.ly/api) based on [Guzzle 5](http://docs.guzzlephp.org/en/latest/).

API: [emanueleminotto.github.io/Embedly](http://emanueleminotto.github.io/Embedly/)

Install
-------

[](#install)

Install the Embedly library adding `emanueleminotto/embedly` to your composer.json or from CLI:

```
$ composer require emanueleminotto/embedly

```

Read more about the [Composer](http://getcomposer.org/) installation here: [getcomposer.org/doc/00-intro.md](https://getcomposer.org/doc/00-intro.md)

Usage
-----

[](#usage)

This library provides 3 API: [embed.ly/docs/api](http://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

[](#embed)

Options are available at

For this method the `$api_key` can be null.

```
use EmanueleMinotto\Embedly\Client;

$client = new Client($api_key);

$embed = $client->oembed([
    'url' => 'http://www.example.com/',
]);

// enumerated array containing
// arrays like $embed
$embeds = $client->oembed([
    'urls' => [
        'http://www.example.com/',
        'http://www.google.com/'
    ]
]);
```

### Extract

[](#extract)

Options are available at

```
use EmanueleMinotto\Embedly\Client;

$client = new Client($api_key);

$extracted = $client->extract([
    'url' => 'http://www.example.com/',
]);

// enumerated array containing
// arrays like $extracted
$extracteds = $client->oembed([
    'urls' => [
        'http://www.example.com/',
        'http://www.google.com/'
    ]
]);
```

### Display

[](#display)

The first argument can be *NULL*, `crop`, `resize` or `fill`.

Options are available at

-
-
-
-

Currently the `url` attribute is required.

```
use EmanueleMinotto\Embedly\Client;

$client = new Client($api_key);

$content = $client->display('resize', [
    'url' => 'http://placehold.it/250x100',
    'color' => '000',
    'height' => 150,
    'width' => 150,
]);
```

Twig Extension
--------------

[](#twig-extension)

In this library there's included a [Twig](http://twig.sensiolabs.org/) extension to allow a simple integration with frameworks.

Functions prefix is: `embedly_`, arguments are the same of the methods above.

```
{{ embedly_oembed({url: 'http://www.example.com'}).title }} {# Example Domain #}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

4166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b6fbd038f22a54716027eb7ce30c6cafd8e59c138ae58b3c2516c34ccfef7f?d=identicon)[EmanueleMinotto](/maintainers/EmanueleMinotto)

---

Top Contributors

[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (48 commits)")

---

Tags

embedlyembedoembed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/emanueleminotto-embedly/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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