PHPackages                             inteve/utils - 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. inteve/utils

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

inteve/utils
============

Utility classes for web development

v0.3.4(2y ago)07.9kBSD-3-ClausePHPPHP &gt;=5.6.0CI failing

Since Apr 12Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/inteve/utils)[ Packagist](https://packagist.org/packages/inteve/utils)[ Fund](https://www.janpecha.cz/donate/)[ RSS](/packages/inteve-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

Inteve\\Utils
=============

[](#inteveutils)

[![Build Status](https://github.com/inteve/utils/workflows/Build/badge.svg)](https://github.com/inteve/utils/actions)[![Downloads this Month](https://camo.githubusercontent.com/7ce038f963b49fa24a98b5f155e0a6a1d59406727cf02ca299f5f017180ff2fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f696e746576652f7574696c732e737667)](https://packagist.org/packages/inteve/utils)[![Latest Stable Version](https://camo.githubusercontent.com/bf614d7c9241866219d69f94031ed97ca22abd82cff068f2412af83a78fc8693/68747470733a2f2f706f7365722e707567782e6f72672f696e746576652f7574696c732f762f737461626c65)](https://github.com/inteve/utils/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/inteve/utils/blob/master/license.md)

Utility classes for web development

[![Donate](https://camo.githubusercontent.com/101b981194f1dafbf9c42e19c3034fe2d724e75be972cef0f4477074997834db/68747470733a2f2f6275796d65636f666665652e696e746d2e6f72672f696d672f646f6e6174652d62616e6e65722e76312e737667)](https://www.janpecha.cz/donate/)

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

[](#installation)

[Download a latest package](https://github.com/inteve/utils/releases) or use [Composer](http://getcomposer.org/):

```
composer require inteve/utils

```

Inteve\\Utils requires PHP 8.0 or later.

Usage
-----

[](#usage)

**DateTimeFactory**

```
$dateTimeFactory = new Inteve\Utils\DateTimeFactory;
$now = $dateTimeFactory->create();
```

**Imagick**

```
use Inteve\Utils\ImagickHelper;
$imagick = ImagickHelper::openImage('file.jpg');
ImagickHelper::resize($imagick, $width, $height, $flags); // same parameters as for Image::resize()
ImagickHelper::saveImage($imagick, 'thumb.jpg');

// and much more!
```

**PaginatorHelper**

```
$paginator = new Nette\Utils\Paginator;
$steps = Inteve\Utils\PaginatorHelper::calculateSteps($paginator);
```

**XmlDocument**

```
$xml = new Inteve\Utils\XmlDocument([
	'standalone' => 'yes',
]);
$root = $xml->create('urlset');

$item = $root->create('url');
$item->create('loc')->setText('http://example.com/');

echo $xml->toString();
```

Prints:

```

		http://example.com/

```

**XmlQuery**

Wrapper of SimpleXml.

```
$query = Inteve\Utils\XmlQuery::fromString('

		http://example.com/

		http://example.com/path

');

$urls = [];

foreach ($query->children('url') as $url) {
	$urls[] = $url->child('loc')->text();
}

var_dump($urls);
```

Prints:

```
http://example.com/
http://example.com/path

```

---

License: [New BSD License](license.md)
Author: Jan Pecha,

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~194 days

Recently: every ~259 days

Total

7

Last Release

1057d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c980b1511b4a0350442dc23d89c99d4d9a2411b7e765d52c133ccacf616968b?d=identicon)[janpecha](/maintainers/janpecha)

---

Top Contributors

[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (28 commits)")

---

Tags

nettephputilitiesweb-development

### Embed Badge

![Health badge](/badges/inteve-utils/health.svg)

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

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28516.5M92](/packages/nette-component-model)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/di

Extra contrib to nette/di

465.8M18](/packages/contributte-di)

PHPackages © 2026

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