Laravel Open Graph - A Laravel package to fetch Open Graph data of a website easily
Laravel OpenGraph is a good package which can be used to fetch Open Graph metadata of a website.
Installation
Install via composer
composer require "shweshi/opengraph"
If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:
Add Service Provider Open config/app.php and add shweshi\OpenGraph\Providers\OpenGraphProvider::class, to the end of providers array:
'providers' => array(
....
shweshi\OpenGraph\Providers\OpenGraphProvider::class,
),
Next under the aliases array:
'aliases' => array(
....
'OpenGraph' => shweshi\OpenGraph\Facades\OpenGraphFacade::class
),
If you do run the package on Laravel 5.5+, package auto-discovery takes care of the magic of adding the service provider.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Packages Sources Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5 Intermediate