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.
- Collection Class: Offers a fluent interface for array manipulation, providing methods for filtering, mapping, reducing, and more, all while maintaining type safety.
- Data Class: An abstract class aimed at creating type-safe DTOs, ensuring data integrity throughout your application.
You can use these utilities individually by copying the classes into your project or by importing the package through Composer. This package is aimed at developers looking for simple, type-safe utilities to enhance their PHP applications.
To add this library to your project, use Composer:
composer require avmg/php-simple-utilities
- PHP 8.1.0 or higher
To contribute or run tests, you'll need PHPUnit. The library already includes PHPUnit as a dev dependency.
Run tests with:
composer test
This project is open-sourced under the MIT License.
- AVMG