PHPackages                             siokas/laravelembeddirectives - 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. [Templating &amp; Views](/categories/templating)
4. /
5. siokas/laravelembeddirectives

ActiveLibrary[Templating &amp; Views](/categories/templating)

siokas/laravelembeddirectives
=============================

Provides a custom Laravel Blade directive to embed anything in the view using the Embed\\Embed package.

1.1(9y ago)3942MITPHP

Since Jul 9Pushed 7y ago2 watchersCompare

[ Source](https://github.com/siokas/laravelembeddirectives)[ Packagist](https://packagist.org/packages/siokas/laravelembeddirectives)[ RSS](/packages/siokas-laravelembeddirectives/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/83f8c01e0aaa2a670ff8b635f20964890b1e9067f15ad48b9c85dad8c8b553d3/68747470733a2f2f706f7365722e707567782e6f72672f73696f6b61732f6c61726176656c656d626564646972656374697665732f762f737461626c65)](https://packagist.org/packages/siokas/laravelembeddirectives)[![Codacy Badge](https://camo.githubusercontent.com/e34ba99256ad7e6989a046de224b190980db4b54eb6e1cb10dcd4e25e38070e2/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3765306563326633653838663434343038326635393935373136383061663235)](https://www.codacy.com/app/apostolossiokas/laravelembeddirectives?utm_source=github.com&utm_medium=referral&utm_content=siokas/laravelembeddirectives&utm_campaign=Badge_Grade)[![Total Downloads](https://camo.githubusercontent.com/f6b2557503aa40b6275335567ad833b4f694dfec5fee29270bf76cdc3dcdb8a6/68747470733a2f2f706f7365722e707567782e6f72672f73696f6b61732f6c61726176656c656d626564646972656374697665732f646f776e6c6f616473)](https://packagist.org/packages/siokas/laravelembeddirectives)[![License](https://camo.githubusercontent.com/a89edd314ed9cb692474df84fcaea084abcb785e48b5e1b537e52f5905942183/68747470733a2f2f706f7365722e707567782e6f72672f73696f6b61732f6c61726176656c656d626564646972656374697665732f6c6963656e7365)](https://packagist.org/packages/siokas/laravelembeddirectives)

Laravel Embed Directives
========================

[](#laravel-embed-directives)

This package lets Laravel users embed any social media link in the views using a simple blade command. To install and use the package, complete the simple steps that are following.

To install the package:

1. Open your terminal
2. Navigate to your project's directory source path
3. Enter the following command

`composer require siokas/laravelembeddirectives`

To get access to the package:

1. Go to your project's folder and open the config/app.php file
2. Navigate to the *providers* section and add the following line

`Siokas\LaravelEmbedDirectives\LaravelEmbedDirectivesServiceProvider::class`

To use the package:

1. In any Blade file use the *embed* command

`@embed('your-link-goes-here')`

Option:

- If you want to specify the width and height of the embed post, just pass them as parameters like this:

`@embed('https://www.youtube.com/watch?v=g4BbeHYCR1E', 500, 500)`

Available Directives
====================

[](#available-directives)

```
@embed('LINK-GOES-HERE') // for general use
@youtube('LINK-GOES-HERE')
@youtubeProfile('LINK-GOES-HERE')
@vimeo('LINK-GOES-HERE')
@twitter('LINK-GOES-HERE')
@facebook('LINK-GOES-HERE')

```

ex. @twitter('taylorotwell') This code embeds the public profile of a user, but you can embed a specific tweet giving the id of the tweet. (ex. taylorotwell/status/751184223445381120)

*Within the @youtube directive, you have to enter the link to the video but only the part after the *watch?**

Requirements
============

[](#requirements)

Embed package: [oscarotero/Embed](https://github.com/oscarotero/Embed)

License (MIT)
=============

[](#license-mit)

The MIT License (MIT) Copyright (c) 2016 Apostolos Siokas

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~0 days

Total

2

Last Release

3593d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d95c04ccf8e8eeb1aa7a740780448f6448cce934417861b1cdf65bf2e9f1cde?d=identicon)[siokas](/maintainers/siokas)

---

Top Contributors

[![siokas](https://avatars.githubusercontent.com/u/5487672?v=4)](https://github.com/siokas "siokas (28 commits)")[![barbgluz](https://avatars.githubusercontent.com/u/20669119?v=4)](https://github.com/barbgluz "barbgluz (1 commits)")

---

Tags

laravelblademediasocialrepositoryembed

### Embed Badge

![Health badge](/badges/siokas-laravelembeddirectives/health.svg)

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

###  Alternatives

[radic/blade-extensions

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

271321.7k5](/packages/radic-blade-extensions)

PHPackages © 2026

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