PHP code example of wonline-network / dynamic-user-agent-generator
1. Go to this page and download the library: Download wonline-network/dynamic-user-agent-generator 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/ */
wonline-network / dynamic-user-agent-generator example snippets
$userAgentGenerator = new DynamicUserAgentGenerator();
// Generar un agente de usuario aleatorio
echo $userAgentGenerator->generate();
// Obtener un agente de usuario para un sistema operativo específico
echo $userAgentGenerator->getOS('windows');
// Obtener un agente de usuario para un dispositivo móvil específico
echo $userAgentGenerator->getMobileOS('android');