Luminova Framework

Helper Classes

Normalize text, validate and format values, and mask sensitive details for display. Convert units and money, encode and compress data, detect MIME types, and generate or validate identifiers and checksums. Find tools for version comparisons, serialization, events, queues, pipelines, and process execution.

Table of Contents

  1. Anonymous Class and Closure Serializer

    Serialize closures and anonymous objects for later restoration.

  2. Common Helpers

    Find the Luminova utility class for text cleanup, value checks, masking, conversions, or identifiers.

  3. Convert Units and Format Values

    Convert sizes, durations, distances, weights, and temperatures. Format decimal and currency amounts and restore binary data from a hex dump.

  4. Encode and Compress Data

    Encode and decode Base32 or URL-safe values, and compress data or HTTP responses.

  5. Managing and Emitting Custom Events Using Observers

    Register named callbacks, emit events, and remove listeners.

  6. FIFO Tasks Queue Execution

    Run tasks in FIFO order and inspect their results.

  7. Generate and Validate Luhn Check Digits

    Calculate a Luhn checksum, generate a check digit, and check identifiers that use the Luhn algorithm.

  8. Utility Class for Basic Math Operations

    Calculate numeric values and convert units, currencies, and coordinates.

  9. MIME Detection Utility

    Detect MIME types and map file extensions to content types.

  10. Convert, Format, and Split Money

    Convert between major and minor units, format amounts, apply rates, and divide a total.

  11. Data Transformation & Pipe Chain Executions

    Transform a value through a sequence of operations and handle errors.

  12. Command Execution using Process Handler

    Run commands or PHP callbacks and collect their output.

  13. Generate Random Values and Barcode Checksums

    Generate deterministic identifiers, random bytes, integers, strings, passwords, and barcode values. Calculate check digits and GMN check characters.

  14. Convert Text to Links with Linkify

    Convert detected URLs, email addresses, phone numbers, mentions, hashtags, and map locations to HTML or Markdown links.

  15. Normalize and Shorten Text

    Normalize whitespace and line breaks, extract text around a marker, and shorten multibyte strings.

  16. Generate and Validate ULIDs

    Generate sortable, 26-character identifiers and check their format.

  17. Generate and Validate UUIDs

    Generate UUID versions 1, 3, 4, 5, and 7. Inspect the version, validate the structure, and optionally check timestamps or name-based values.

  18. Format Phone Numbers, Domains, and Input Strings

    Format phone numbers, extract host labels, compact PHP array syntax, and validate or filter input strings by type.

  19. Mask Values for Display

    Hide portions of strings, email addresses, phone numbers, and card numbers before displaying them.

  20. Validating Common Value Formats

    Check deterministic identifiers, email addresses, URLs, phone values, binary data, check digits, integers, and geographic coordinates.

  21. Compare Version Numbers and Constraints

    Compare numeric versions and check whether a version satisfies one or more constraints.

  22. Store a Value with the WeakReference Utility

    Store, replace, or read a value through a reusable wrapper.