PHP code example of invoke / browser
1. Go to this page and download the library: Download invoke/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/ */
invoke / browser example snippets
$browser = new Browser($_SERVER['HTTP_USER_AGENT']);
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Browser Class</title>
<style>
body.google-chrome.mac {
background: red;
}
</style>
</head>
<body class=" echo $browser->browser . ' ' . $browser->platform