pulyavin / tools
There is no license information available for the latest version (dev-master) of this package.
PHP tools library
dev-master
2018-02-03 19:49 UTC
Requires
- php: >=5.3
- ext-curl: *
This package is not auto-updated.
Last update: 2025-03-29 21:05:00 UTC
README
"tools" is a package of PHP library
Installation
-
Install Composer:
curl -sS https://getcomposer.org/installer | php
-
Add dependency
{
"require": {
"pulyavin/tools": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pulyavin/miner"
}
]
}
- Update:
php composer.phar update
Usage
So you can get a random user agent, like this
use pulyavin\tools\UserAgents; $agent = new UserAgents; // get random user agent var_dump($agent->getRand()); // get random user agent of list var_dump($agent->getRand(['FFWin', 'FFMac', 'FFLin']));