1. Go to this page and download the library: Download 1978io/scry 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/ */
1978io / scry example snippets
use Scry\Scry;
$d = Scry::detect(); // reads the current request: User-Agent + Sec-CH-UA* headers
if (!$d->isBrowser()) {
// curl, a script, a headless browser, a crawler…
}
echo $d->label(); // "Chrome on Windows"