tschallacka / php-simple-utilities

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • 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.

Usage

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.

Installation

To add this library to your project, use Composer:

composer require avmg/php-simple-utilities

Requirements

  • PHP 8.1.0 or higher

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

This project is open-sourced under the MIT License.

Authors

  • AVMG

About

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

License:MIT License


Languages

Language:PHP 100.0%