Skip to content

mwhite/random-uagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Random User Agent generator

A random User-Agent generator written in PHP. It generates desktop browser User Agent strings, roughly based on browser and OS usage statistics from Wikipedia and StatOwl.com as of July 2012.

Numbers for more minor variable components of the User Agent for each browser are chosen randomly, so it may at times generate User Agents that never actually exist in the wild.

Usage

Simply require uagent.php and call the function random_uagent(). You may optionally pass a single parameter consisting of an array of language codes to randomly choose from.

Changelog

License

"THE BEER-WARE LICENSE" (Revision 42):

pusic93@gmail.com wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luka Pusic

About

PHP random user agent generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages