Package Data | |
---|---|
Maintainer Username: | siokas |
Maintainer Contact: | apostolossiokas@gmail.com (Apostolos Siokas) |
Package Create Date: | 2016-07-09 |
Package Last Update: | 2018-10-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-21 03:02:22 |
Package Statistics | |
---|---|
Total Downloads: | 82 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 0 |
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:
composer require siokas/laravelembeddirectives
To get access to the package:
Siokas\LaravelEmbedDirectives\LaravelEmbedDirectivesServiceProvider::class
To use the package:
@embed('your-link-goes-here')
Option:
@embed('https://www.youtube.com/watch?v=g4BbeHYCR1E', 500, 500)
@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?
Embed package: oscarotero/Embed
The MIT License (MIT) Copyright (c) 2016 Apostolos Siokas