PHP code example of hirak / packagist-crawler
1. Go to this page and download the library: Download hirak/packagist-crawler 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/ */
hirak / packagist-crawler example snippets
return (object)array(
'cachedir' => __DIR__ . '/cache/',
//'cachedir' => '/usr/share/nginx/html/',
//'cachedir' => '/usr/local/apache2/htdocs/',
'packagistUrl' => 'https://packagist.org',
'maxConnections' => 4,
'lockfile' => __DIR__ . '/cache/.lock',
'expiredDb' => __DIR__ . '/cache/.expired.db
);