PHPackages                             pulyavin/tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pulyavin/tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pulyavin/tools
==============

PHP tools library

02PHP

Since Feb 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pulyavin/php-tools)[ Packagist](https://packagist.org/packages/pulyavin/tools)[ RSS](/packages/pulyavin-tools/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

streams
=======

[](#streams)

"tools" is a package of PHP library

Installation
------------

[](#installation)

1. Install [Composer](http://getcomposer.org/):

    ```
    curl -sS https://getcomposer.org/installer | php

    ```
2. Add dependency

```
{
    "require": {
        "pulyavin/tools": "dev-master"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/pulyavin/miner"
        }
    ]
}

```

2. Update:

```
php composer.phar update

```

Usage
-----

[](#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']));
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/836b21ca4e9183229c20d1dc4724d6308ad608aa5c1081ccd3b718e4baf5717d?d=identicon)[pulyavin](/maintainers/pulyavin)

---

Top Contributors

[![pulyavin](https://avatars.githubusercontent.com/u/9364583?v=4)](https://github.com/pulyavin "pulyavin (2 commits)")

### Embed Badge

![Health badge](/badges/pulyavin-tools/health.svg)

```
[![Health](https://phpackages.com/badges/pulyavin-tools/health.svg)](https://phpackages.com/packages/pulyavin-tools)
```

###  Alternatives

[alfallouji/php_multithread

iPHP library to handle multi-threading

3231.0k](/packages/alfallouji-php-multithread)[heimrichhannot/contao-encore-bundle

This bundle brings deep integration for symfony encore into contao. On the one hand, your can prepare your bundles to define own webpack entries, which added with just one command to your webpack entries. On the other hand, this bundle allows you to add encore entries only on the pages you need them for optimizing your website performance.

1016.8k](/packages/heimrichhannot-contao-encore-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
