exeque / remix
A powerful and user-friendly library that provides discreet comparators and mutators, allowing you to create reusable transformers for data transformations.
Requires
- php: ^8.1
- jawira/case-converter: ^3.5
- martinlindhe/php-mb-helpers: ^0.1.7
- symfony/polyfill-mbstring: ^1.27
- webmozart/assert: ^1.11
Requires (Dev)
- ext-openssl: *
- code-lts/doctum: ^5.5
- infection/infection: ^0.27.0
- laravel/pint: ^1.10
- mockery/mockery: ^1.6
- pestphp/pest: ^2.8
- pestphp/pest-plugin-faker: ^2.0
- spatie/php-structure-discoverer: ^1.1
- symfony/var-dumper: ^6.3
This package is auto-updated.
Last update: 2024-11-16 09:38:09 UTC
README
ReMix - A Library for Reusable Transformers
ReMix is a powerful and user-friendly library that provides discreet comparators and mutators, allowing you to create reusable transformers for data transformations.
With a focus on ease of use and developer experience, ReMix enables you to compose these components in a human-readable format, making your code more maintainable and understandable.
Installation
Install the latest version with Composer:
composer require exeque/remix
API Documentation
The API documentation is available here.
Examples
A few examples are available here.
Key Features
-
Intuitive API: ReMix offers a clean and intuitive API that allows you to easily combine comparators and mutators to create powerful transformers.
-
Reusable Transformers: Create modular and reusable transformers that can be shared across different projects, saving you development time and effort.
-
Discreet Comparators: Fine-grained control over data comparison with a variety of discreet comparators supporting different data types and flexible comparison options.
-
Mutators: Transform data using predefined rules with mutators that perform operations such as value modification, data formatting, and element filtering.
-
Human-Readable Format: Express your transformations in a human-readable format with clear function and parameter names, consistent syntax, and documentation examples.
-
Error Handling and Validation: Robust error handling and validation mechanisms provide informative error messages, ensuring your code is error-free and easy to debug.
-
Testing and Documentation: Comprehensive testing and thorough documentation guides to help you get started quickly and leverage the library effectively.