event-engine/php-engine-utils
Utilities for Event Engine in PHP: helper classes and shared tooling to simplify building and running Event Engine-based applications. Includes common infrastructure utilities and convenience functions to reduce boilerplate in your event-driven domain code.
MapIterator for lazy-loaded transformations (e.g., paginated API responses or batch processing).Collection mocks with MapIterator).Traversable, Generator, IteratorAggregate) in Laravel/Eloquent.MapIterator fixes).spatie/array-to-object).map(); this package is more generic).roave/security-advisories were moved to dev-dependencies).For Executives: "This lightweight PHP package standardizes how we handle data transformations across our Laravel services—think of it as a ‘turbocharger’ for iterating over complex data (like nested arrays or database results) without writing repetitive loops. It’s MIT-licensed, PHP 8-compatible, and could cut development time for data pipelines by 20–30%. For example, if we’re processing large CSV files or API responses, this package ensures we do it efficiently and consistently. The trade-off? Minimal maintenance risk, given its niche focus and no external dependencies."
For Engineering:
*"The MapIterator class here solves a pain point we’ve hit before: transforming traversable objects (e.g., Generators from queues or Traversable API responses) without breaking PHP’s iterator rules. Key wins:
rewind() errors in older versions.MapIterator to Collection::toBase() for custom transformations.
Downside: Not actively maintained, but the core functionality is stable. We’d own any future fixes if needed. Worth a spike to compare against rolling our own or using spatie/array-to-object."*How can I help you explore Laravel packages today?