1. Go to this page and download the library: Download vxsilisk/pulsarx 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/ */
vxsilisk / pulsarx example snippets
$s = new Pulsar();
$r = $s->get('https://example.com');
$r->getStatusCode(); // 200
$r->ok(); // true
$r->getBody(); // raw body
$r->json(); // decoded JSON
$r->getElapsed(); // transfer time in seconds
$s = new Pulsar();
$s->get('https://site.com/login'); // server sets cookies
$s->post('https://site.com/cart', $payload); // cookies sent automatically
$s = (new Pulsar())->rotate(); // realistic pool of current browsers
$s = (new Pulsar())->rotate(['chrome146', 'firefox144', 'safari260']); // your own pool
$s = (new Pulsar())->impersonate('random'); // one random profile, fixed for the session
$s->get($url, timeout: 5); // override the default 60s for this call
$s->redirects(follow: true, max: 10); // session-wide redirect policy
$r = $s->get($url);
$r->getUrl(); // final URL after redirects
$r->getRedirectCount(); // how many hops