2017 © Pedro Peláez
 

library laravelembeddirectives

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

image

siokas/laravelembeddirectives

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

  • Monday, July 11, 2016
  • by siokas
  • Repository
  • 1 Watchers
  • 3 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Latest Stable Version Codacy Badge Total Downloads License , (*1)

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., (*2)

To install the package:, (*3)

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

composer require siokas/laravelembeddirectives, (*4)

To get access to the package:, (*5)

  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, (*6)

To use the package:, (*7)

  1. In any Blade file use the embed command

@embed('your-link-goes-here'), (*8)

Option:, (*9)

  • 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), (*10)

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), (*11)

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

Requirements

Embed package: oscarotero/Embed, (*13)

License (MIT)

The MIT License (MIT) Copyright (c) 2016 Apostolos Siokas, (*14)

The Versions

11/07 2016

dev-analysis-Xpr9e4

dev-analysis-Xpr9e4

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

  Sources   Download

MIT

The Requires

 

laravel repository social blade media embed

10/07 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

laravel repository social blade media embed

10/07 2016

1.1

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

laravel repository social blade media embed

09/07 2016

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

laravel repository social blade media embed