PHP code example of iserter / php-goose

1. Go to this page and download the library: Download iserter/php-goose 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/ */

    

iserter / php-goose example snippets


use Iserter\Goose\Goose;

$goose = new Goose();
$article = $goose->extract('https://example.com/some-article');

echo $article->getTitle();

$article = $goose->extract($html, 'https://iserter.com');