Repository navigation
π Maatify Common v1.0.2 β Introducing TapHelper for Cleaner Initialization
π Maatify Common v1.0.2 β Introducing TapHelper for Cleaner Initialization
Release Date: 2025-11-10
Author: [Mohamed Abdulalim (megyptm)](mailto:mohamed@maatify.dev)
License: MIT
Organization: [Maatify.dev](https://www.maatify.dev)
β¨ Overview
This version introduces the new TapHelper utility β a lightweight, functional-style helper designed to simplify object initialization and improve code fluency across all Maatify libraries.
It lets you execute a callback on an object or value and return that same instance unchanged, making adapter or service setup much cleaner.
βCleaner initialization β’ Consistent patterns β’ Zero boilerplate.β
π§© Whatβs New
- Added:
Maatify\Common\Helpers\TapHelper
β Provides a statictap()method to execute a callback on a value and return it unchanged.
β Promotes fluent, functional initialization patterns across the ecosystem. - Added Tests:
tests/Helpers/TapHelperTest.php
β Covers object identity, callback execution, and scalar/array support. - Updated Docs:
README.md
β New Helper Utilities section with usage examples and architectural notes.
β Linked reference from the Core Modules section.
π§± Architectural Impact
- Enables fluent adapter and service initialization using one line.
- Improves developer ergonomics and readability throughout Maatify projects.
- Keeps consistency with helpers such as
PathHelper,EnumHelper, andTimeHelper. - Fully backward-compatible with v1.0.1 (no breaking changes).
π§Ύ Changelog Summary
v1.0.2 β 2025-11-10
β’ Added TapHelper utility under Maatify\Common\Helpers
β’ Added full unit tests for TapHelper
β’ Updated README with Helper Utilities section
β’ Improved developer experience for adapter initialization
π¦ Upgrade Guide
No action required.
Simply update via Composer:
composer update maatify/commonAll features are non-breaking and immediately available after autoload refresh.
Β© 2025 Maatify.dev β Engineered by [Mohamed Abdulalim](https://www.maatify.dev)
Distributed under the MIT License