PHPackages                             sagsoz06/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. [Image &amp; Media](/categories/media)
4. /
5. sagsoz06/embed

ActiveLibrary[Image &amp; Media](/categories/media)

sagsoz06/embed
==============

Media Embed (for Laravel or as a standalone).

v5.3.1(9y ago)015BSD-3-ClausePHPPHP &gt;=5.3.0

Since Dec 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sagsoz06/embed)[ Packagist](https://packagist.org/packages/sagsoz06/embed)[ RSS](/packages/sagsoz06-embed/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

Embed
=====

[](#embed)

Generate media html (YouTube, Vimeo, Kickstarter etc.) based on the url.

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

[](#installation)

Add following require to your `composer.json` file:

For Laravel 5:

```
    "cohensive/embed": "dev-master"
    // or
    "cohensive/embed": "5.0.*"

```

For Laravel 4:

```
    "cohensive/embed": "4.3.1"

```

Then run `composer install` or `composer update` to download it and autoload.

In `providers` array you need to add new package:

```
'providers' => array(

	//...
	'Cohensive\Embed\EmbedServiceProvider',
	//...

)

```

In aliases:

```
'aliases' => array(

	//...
	'Embed' => 'Cohensive\Embed\Facades\Embed'
	//...

)

```

Usage
-----

[](#usage)

```
$embed = Embed::make('http://youtu.be/uifYHNyH-jA')->parseUrl()
// Will return Embed class if provider is found. Otherwie will return false - not found. No fancy errors for now.
if ($embed) {
	// Set width of the embed.
	$embed->setAttribute(['width' => 600]);

	// Print html: ''.
	// Height will be set automatically based on provider width/height ratio.
	// Height could be set explicitly via setAttr() method.
	echo $embed->getHtml();
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.9% 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 ~67 days

Recently: every ~2 days

Total

17

Last Release

3466d ago

Major Versions

v4.2.0 → v5.0.02015-02-05

v4.3.1 → 5.3.x-dev2016-11-08

4.3.x-dev → v5.3.12016-11-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/97d293b3dd3a4e7655fb8b6c0245cb27adf9857bf3400df1730bbcf51d6be27a?d=identicon)[sagsoz06](/maintainers/sagsoz06)

---

Top Contributors

[![KaneCohen](https://avatars.githubusercontent.com/u/578455?v=4)](https://github.com/KaneCohen "KaneCohen (55 commits)")[![killtw](https://avatars.githubusercontent.com/u/1076225?v=4)](https://github.com/killtw "killtw (4 commits)")[![sagsoz06](https://avatars.githubusercontent.com/u/306175?v=4)](https://github.com/sagsoz06 "sagsoz06 (4 commits)")[![ramon-villain](https://avatars.githubusercontent.com/u/1520006?v=4)](https://github.com/ramon-villain "ramon-villain (1 commits)")

---

Tags

laravelyoutubemediavimeoembed

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[cohensive/oembed

Media embed generation using OEmbed protocol.

3567.1k](/packages/cohensive-oembed)[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154172.0k](/packages/classic-o-nova-media-library)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[mediamonks/sonata-media-bundle

A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle

109.8k](/packages/mediamonks-sonata-media-bundle)[fg/multiplayer

Builds customizable video embed codes from any URL.

446.8k1](/packages/fg-multiplayer)

PHPackages © 2026

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