1. Go to this page and download the library: Download rafaelglikis/sinama 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/ */
rafaelglikis / sinama example snippets
use Sinama\Client;
$client = new Client();
// Go to the motherfuckingwebsite.com website
$crawler = $client->request('GET', 'https://motherfuckingwebsite.com/');
use Sinama\Client;
use GuzzleHttp\Client as GuzzleClient;
$client = new Client(new GuzzleClient([
'timeout' => 60
]));
$crawler = $client->request('GET', 'https://github.com/trending');