Utility & Helpers
Utility classes and helpers provide reusable methods like arrays, strings, objects, asynchronous operations, lazy objects, and promise handling. They simplify repetitive coding tasks across your project.
Table of Contents
- FIFO Tasks Queue Execution
The Queue Utility is a simple and efficient module for executing tasks in FIFO order. It utilizes PHP Fiber if available or alternative methods if not supported.
- Proxy Testing Utility
Easily parse, validate, and test HTTP/SOCKS proxies. Handle IPv4/IPv6, check latency, resolve public IPs, verify anonymity, and format proxies for use in any application.
- Basic Maths Utility Class
Maths class offers static utility methods for common calculations, including currency and unit conversions, averages, ratings, discounts, distance, and interest computations.
- PHP Common Helpers
The common helpers provide a set of static utility methods for formatting, validating, and normalizing data. They include features such as string and email masking, phone number formatting, and more
- Command Execution using Process Handler
Process Handler simplifies executing command processes. It supports multiple execution methods like popen, proc_open, and shell_exec, as well as running closures and working with stream interfaces.
- Managing and Emitting Custom Events Using Observers
Whether you need to listen for user actions, manage system events, or trigger custom workflows, The Event class offers a simple yet powerful solution to orchestrate event handling across your project.
- Pipeline-Based Data Processing and Transformation
The Pipeline class is a simple utility class that allows data to flow through a series of transformations, operations, and error-handling steps.
- MIME Detection Utility
A lightweight PHP MIME utility for detecting content types from files, filenames, streams, or raw data. Supports custom MIME databases, extension lookup, and reliable guessing of MIME types.