PHP code example of maopackages / envato-portfolio-extractor
1. Go to this page and download the library: Download maopackages/envato-portfolio-extractor 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/ */
maopackages / envato-portfolio-extractor example snippets
use MAO\EnvatoExtractor;
try {
$envatoExtractor = new EnvatoExtractor('https://themeforest.net/user/themestransmit/portfolio');
$products = $envatoExtractor->getPortfolios();
print_r($products);
} catch (\Exception $e) {
echo 'Error: ' . $e->getMessage();
}
bash
/src
/App
Extractor.php
EnvatoExtractor.php
/tests
EnvatoExtractorTest.php
/vendor
(Composer-managed dependencies)
phpunit.xml
composer.json