PHPackages                             granam/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. granam/tools

ActiveProject

granam/tools
============

Toolbox

6.1.0(5y ago)246.2k↓20.6%9MITPHPPHP &gt;=7.3

Since Mar 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/granam/tools)[ Packagist](https://packagist.org/packages/granam/tools)[ Docs](https://github.com/granam/tools)[ RSS](/packages/granam-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (30)Used By (9)

Value describer
===============

[](#value-describer)

```
use namespace Granam\Tools\ValueDescriber;

// "instance of \stdClass'
echo ValueDescriber::describe(new \stdClass());

// "array {}"
echo ValueDescriber::describe([]);

// "resource"
echo ValueDescriber::describe(tmpfile());

// "123,123.45,'123','123.45',array {\n  0 => string(3) "bar"},instance of \stdClass"
echo ValueDescriber::describe(123, 123.45, '123', '123.45', ['bar'], new \stdClass());
```

File upload exception
=====================

[](#file-upload-exception)

```
if ($_FILES['user_attachment1']['error'] === UPLOAD_ERR_OK) {
    // upload successful
} else {
// File of name 'damn_big.png' has not been uploaded (The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form: 2000)
    throw new FileUploadException("File of name '{$_FILES['user_attachment1']['name']}' has not been uploaded", $_FILES['user_attachment1']['error']);
}
```

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

[](#installation)

```
composer require granam/tools
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~66 days

Recently: every ~36 days

Total

29

Last Release

1881d ago

Major Versions

4.0.0 → 5.0.02019-08-22

4.0.1 → 5.0.12019-08-22

3.0.x-dev → 4.0.x-dev2019-08-26

4.0.2 → 5.0.22019-08-27

5.0.x-dev → 6.0.02020-11-04

PHP version history (4 changes)1.0.x-devPHP &gt;=5.4

2.0.0PHP &gt;=7.0

3.0.0PHP &gt;=7.1

6.1.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e35d11c9a75584084f0dc0ba1a3b6ff03355777809cbe8eabd20a88ac00f794?d=identicon)[jaroslavtyc](/maintainers/jaroslavtyc)

---

Top Contributors

[![jaroslavtyc](https://avatars.githubusercontent.com/u/2290225?v=4)](https://github.com/jaroslavtyc "jaroslavtyc (67 commits)")

---

Tags

phpstringobjectToolbox

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)

PHPackages © 2026

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