PHPackages                             zuffik/srvant - 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. zuffik/srvant

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

zuffik/srvant
=============

Data structures and object wrappers for primitive data types

1.2.7(8y ago)01661MITPHP

Since Dec 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zuffik/srvant)[ Packagist](https://packagist.org/packages/zuffik/srvant)[ RSS](/packages/zuffik-srvant/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (30)Used By (0)

[![ant](https://camo.githubusercontent.com/69e98b487bd73d7f0305694fdab7b90f9b88e6d5869349016ebc1dc10b2c2044/68747470733a2f2f6c6b6d73747564696f2e65752f732f616e742e706e67)](https://camo.githubusercontent.com/69e98b487bd73d7f0305694fdab7b90f9b88e6d5869349016ebc1dc10b2c2044/68747470733a2f2f6c6b6d73747564696f2e65752f732f616e742e706e67)

srvant
======

[](#srvant)

**srvant** is your little but helpful package that improves PHP usability.

---

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNFEPSATF37TN)

Docs
----

[](#docs)

### Installation

[](#installation)

simply...

```
composer require zuffik/srvant
```

### Usage

[](#usage)

#### Structures

[](#structures)

**Lists:**

- Array List
- Linked List

**Maps:**

- Hash map

*example:*

```
$list = new ArrayList();
$list->add(1, 2, 3, -1);
foreach($list as $item) {
	echo $item . "\n";
}
// And equivalent
$list->map(function($item) {
	echo $item . "\n";
	return $item;
})->filter(function($item) {
	return $item > 0;
});
// And many more
```

> Full documentation available [here](https://github.com/zuffik/srvant/tree/master/docs/).

#### String

[](#string)

Offers interface with string functions.

*example:*

```
$str = string('Hallo world')
	->replace('a', 'e')
	->lowerCase()
	->slugify()
	->upperCase();
echo $str; // HELLO-WORLD
```

> Full documentation available [here](https://github.com/zuffik/srvant/tree/master/docs/).

#### Formats

[](#formats)

- CSV
- JSON
- Regex
- URL

All of these offer a interface for work with certain data format.

*example:*

```
$url = new URL('http://sub.example.com/index.php?action=page');
echo $url->getDomain(); // example
echo $url->getRequestedUrl(); // index.php
```

> Full documentation available [here](https://github.com/zuffik/srvant/tree/master/docs/).

There are planned many features in future.

Sources
-------

[](#sources)

As for mime types, [this](https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) magic database is used

Contribution
------------

[](#contribution)

Contribution is simple. Make pull request with your new or edited code. It **MUST** follow PSR coding standards. For new feature provide also unit tests.

### Donate

[](#donate)

If you are satisfied with **srvant**, please donate. Thank you all. :)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNFEPSATF37TN)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~6 days

Recently: every ~17 days

Total

29

Last Release

2966d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7671752?v=4)[Kristián Žuffa](/maintainers/zuffik)[@zuffik](https://github.com/zuffik)

---

Top Contributors

[![zuffik](https://avatars.githubusercontent.com/u/7671752?v=4)](https://github.com/zuffik "zuffik (30 commits)")[![laky107](https://avatars.githubusercontent.com/u/33639152?v=4)](https://github.com/laky107 "laky107 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zuffik-srvant/health.svg)

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

###  Alternatives

[oscarotero/inline-svg

PHP library to embed svg in the html

1934.7k1](/packages/oscarotero-inline-svg)

PHPackages © 2026

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