Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seikan/RandomUserAgent
Randomly generate browser user agent that looks valid.
https://github.com/seikan/RandomUserAgent
Last synced: 3 months ago
JSON representation
Randomly generate browser user agent that looks valid.
- Host: GitHub
- URL: https://github.com/seikan/RandomUserAgent
- Owner: seikan
- License: mit
- Created: 2018-03-03T01:57:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T02:07:00.000Z (almost 7 years ago)
- Last Synced: 2024-08-01T19:53:14.470Z (6 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - seikan/RandomUserAgent - Randomly generate browser user agent that looks valid. (PHP)
README
# RandomUserAgent
Randomly generate browser user agent that looks valid. Generated as Windows, Linux, and Mac OS platforms. With 6 common desktop browsers: Firefox, Google Chrome, Safari, Internet Explorer, and Edge.
## Usage
### Getting Started
> \$rua= new RandomUserAgent( );
```php
// Include core RandomUserAgent library
require 'class.RandomUserAgent.php';// Initialize RandomUserAgent object
$rua = new RandomUserAgent();
```### Get Random User Agent
Gets a randomly generated user agent.
> **string** \$rua->getUserAgent( );
```php
echo $rua->getUserAgent();// Mozilla/5.0 (Windows NT 5.1; rv:48.4) Gecko/20120101 Firefox/48.4
```