PHP code example of nkwtnb / ogparser
1. Go to this page and download the library: Download nkwtnb/ogparser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nkwtnb / ogparser example snippets
use nkwtnb\ogparser\Ogparser;
e.com");
$ogp->fetch();
var_dump($ogp->get_url());
var_dump($ogp->get_title());
var_dump($ogp->get_description());
var_dump($ogp->get_image());
var_dump($ogp->get_site_name());