PHPackages                             mraafatcode/embedcreator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mraafatcode/embedcreator

ActivePackage[Utility &amp; Helpers](/categories/utility)

mraafatcode/embedcreator
========================

Laravel package to create HTML embed code using URL only, supports Facebook, Youtube, Instagram, Twitter, Vimeo and Dailymotion

261PHP

Since Nov 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MraafatCode/EmbedCreator)[ Packagist](https://packagist.org/packages/mraafatcode/embedcreator)[ RSS](/packages/mraafatcode-embedcreator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

### HTML Embed Creator Package For Laravel

[](#html-embed-creator-package-for-laravel)

##### Laravel package to create HTML embed code using URL only

[](#laravel-package-to-create-html-embed-code-using-url-only)

##### Supports Facebook, Youtube, Instagram, Twitter, Vimeo and Dailymotion

[](#supports-facebook-youtube-instagram-twitter-vimeo-and-dailymotion)

#### Installing.

[](#installing)

###### Via Composer

[](#via-composer)

```
composer require mraafatcode/embedcreator
```

##### After you have installed Package, open your Laravel config file config/app.php and add the following lines.

[](#after-you-have-installed-package-open-your-laravel-config-file-configappphp-and-add-the-following-lines)

##### In the $providers array add the service providers for this package.

[](#in-the-providers-array-add-the-service-providers-for-this-package)

```
MraafatCode\EmbedCreator\Providers\EmbedCreatorProvider::class
```

##### Add the facade of this package to the $aliases array.

[](#add-the-facade-of-this-package-to-the-aliases-array)

```
'EmbedCreator' => MraafatCode\EmbedCreator\EmbedCreator::class,
```

#### How to use it?

[](#how-to-use-it)

By use class `EmbedCreator` and pass url to `url()` then pass `maxWidth()` in pixels(px) then embed type function at end use `get()`.

#### Embed type functions

[](#embed-type-functions)

`youtube()``facebook()``instagram()``twitter()``vimeo()``dailymotion()`

#### Note!

[](#note)

##### `You can create embed without set the max width so the code will run with default width.`

[](#you-can-create-embed-without-set-the-max-width-so-the-code-will-run-with-default-width)

#### Examples

[](#examples)

```
// $url = "VIDEO_URL"
$youtuebEmbed = EmbedCreator::url($url)->maxWidth(560)->youtube()->get();
// $url = "VIDEO_URL"
$VimeoEmbed = EmbedCreator::url($url)->maxWidth(600)->vimeo()->get();
// $url = "VIDEO_URL"
$dailymotionEmbed = EmbedCreator::url($url)->maxWidth(600)->dailymotion()->get();
// $url = "TWEET_URL"
$twitterEmbed = EmbedCreator::url($url)->maxWidth(450)->twitter()->get();
// $url = "VIDEO_OR_IMAGE_URL"
$instagramEmbed = EmbedCreator::url($url)->instagram()->get();
// $url = "POST_URL"
$facebookEmbed = EmbedCreator::url($url)->facebook()->get();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35eee65a2f4abce5bc774b28cb293adcb3d5a71d39f3aac897e9f8728c5ea24c?d=identicon)[MraafatCode](/maintainers/MraafatCode)

---

Top Contributors

[![MraafatCode](https://avatars.githubusercontent.com/u/20463464?v=4)](https://github.com/MraafatCode "MraafatCode (3 commits)")

### Embed Badge

![Health badge](/badges/mraafatcode-embedcreator/health.svg)

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

###  Alternatives

[asantibanez/livewire-resource-time-grid

Laravel Livewire resource time grid component

2298.1k](/packages/asantibanez-livewire-resource-time-grid)

PHPackages © 2026

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