PHPackages                             avmg/php-simple-utilities - 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. avmg/php-simple-utilities

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

avmg/php-simple-utilities
=========================

Various simple Utilities classes like Collections and DTO's with Type safety in mind

1.6.7(7mo ago)4121MITPHPPHP &gt;=8.1.0CI passing

Since Feb 13Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/AVMG20/php-simple-utilities)[ Packagist](https://packagist.org/packages/avmg/php-simple-utilities)[ RSS](/packages/avmg-php-simple-utilities/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (41)Used By (0)

AVMG PHP Simple Utilities
-------------------------

[](#avmg-php-simple-utilities)

This package, `avmg/php-simple-utilities`, provides a set of simple utility classes including Collections and DTOs (Data Transfer Objects) with a focus on type safety. Designed with simplicity in mind, these utilities are perfect for integrating standard data manipulation and collection handling capabilities into your PHP projects.

### Features

[](#features)

This package includes the following utilities:

- **[Arr Class](docs/Arr.md)**: A set of powerful utility methods for working with arrays in PHP, offering a clean and expressive API for common array operations, inspired by Laravel's collection methods.
- **[Collection Class](docs/Collection.md)**: Offers a fluent interface for array manipulation, providing methods for filtering, mapping, reducing, and more, all while maintaining type safety.
- **[Data Class](docs/Data.md)**: An abstract class aimed at creating type-safe DTOs, ensuring data integrity throughout your application.
- **[FileCache Class](docs/FileCache.md)**: A simple interface for storing, retrieving, and managing cache data in the filesystem.
- **[EventDispatcher Class](docs/EventDispatcher.md)**: A simple, yet powerful way to manage and dispatch events throughout your PHP application.
- **[Plastic Class](docs/Plastic.md)**: A Simple Carbon inspired class for working with dates and times, with no dependencies and a focus on simplicity and type safety.
- **[FileStorage Class](docs/FileStorage.md)**: A simple and efficient way to handle file storage operations within a filesystem, providing functionalities such as creating directories, storing, retrieving, and deleting files.
- **[Validator Class](docs/Validator.md)**: A simple and flexible way to validate data against a set of rules, with support for custom validation methods and error messages.

### Dependencies

[](#dependencies)

This package has **no dependenci*e*s**. It is designed to be lightweight, self-contained, fast and easy to integrate into any PHP project.

### Usage

[](#usage)

All classes are single file based and self-contained, so you can easily copy them into your project if you prefer not to require another Composer package.
This package is aimed at developers looking for simple, type-safe utilities to enhance their PHP applications and workflows.

### Installation

[](#installation)

To add this library to your project, use Composer:

```
composer require avmg/php-simple-utilities
```

### Requirements

[](#requirements)

- PHP 8.1.0 or higher

### Development

[](#development)

To contribute or run tests, you'll need PHPUnit. The library already includes PHPUnit as a dev dependency.

Run tests with:

```
composer test
```

### License

[](#license)

This project is open-sourced under the MIT License.

### Authors

[](#authors)

- AVMG

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 81.6% 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 ~16 days

Recently: every ~63 days

Total

38

Last Release

236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe1f0580514fe776f6e1713a71c9f0599ae0c93d92afceb5c386d6f69f9744df?d=identicon)[AVMG](/maintainers/AVMG)

---

Top Contributors

[![AVMG20](https://avatars.githubusercontent.com/u/45005889?v=4)](https://github.com/AVMG20 "AVMG20 (40 commits)")[![teunissenstefan](https://avatars.githubusercontent.com/u/1182849?v=4)](https://github.com/teunissenstefan "teunissenstefan (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avmg-php-simple-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/avmg-php-simple-utilities/health.svg)](https://phpackages.com/packages/avmg-php-simple-utilities)
```

###  Alternatives

[neitanod/forceutf8

PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.

1.6k22.2M98](/packages/neitanod-forceutf8)[commerceguys/enum

A PHP 5.4+ enumeration library.

961.9M7](/packages/commerceguys-enum)[danog/better-prometheus

A better Prometheus library for PHP applications

13179.5k2](/packages/danog-better-prometheus)[wcm/git-php-hooks-library

A collection of Git PHP Hooks

1210.1k3](/packages/wcm-git-php-hooks-library)

PHPackages © 2026

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