Laravel OpenGraph is a good package which can be used to fetch Open Graph metadata of a website.

laravel opengraph

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.