PHP code example of coquibot / coqui-toolkit-browser
1. Go to this page and download the library: Download coquibot/coqui-toolkit-browser 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/ */
coquibot / coqui-toolkit-browser example snippets
declare(strict_types=1);
use CoquiBot\Toolkits\Browser\BrowserToolkit;
echo $tool->name() . ': ' . $tool->description() . PHP_EOL;
}
// Navigate to a page
$browser = $toolkit->tools()[0];
$result = $browser->execute([
'action' => 'open',
'url' => 'https://example.com',
]);
echo $result->content;