awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
php-standard-library avatar

php-standard-library/php-standard-library

0
View on GitHub↗
1,552 stars·89 forks·PHP·MIT·10 viewsphp-standard-library.dev↗

Php Standard Library

The php-standard-library is a comprehensive toolkit for functional programming and asynchronous networking in PHP, featuring typed data structures, structured concurrency, and composable validation mechanisms. It provides explicit result types and pure collection transformers that separate lists from dictionaries, eliminating traditional array key confusion and error-throwing patterns.

The library supports concurrent execution through lightweight user-space fibers, message-passing channels, and non-blocking event loops, driving asynchronous TCP, TLS, UDP, and Unix socket servers without relying on callbacks or promises. It includes tools for declarative data validation against untrusted input shapes without runtime reflection overhead, alongside Unicode-aware string processing and handle-based asynchronous input-output operations.

Additional capabilities cover classic data structures, immutable graph and tree algorithms, network routing, web identifier parsing, and process management.

Features

  • Asynchronous Network Frameworks - Provides an asynchronous networking library for building servers and clients using low-level protocols like TCP, TLS, and UDP.
  • Asynchronous Networking - Builds production-ready asynchronous TCP, TLS, UDP, and Unix socket servers and clients for reliable networking.
  • Network Primitives - Provides production-ready asynchronous servers and clients using low-level network primitives like TCP, TLS, UDP, and Unix sockets.
  • Enforced Result Handling - Represents computations that either succeeded or failed, replacing traditional error-throwing patterns with explicit success and failure states.
  • Functional Programming Libraries - Delivers a functional programming toolkit in PHP providing pure collection transformers, option types, and composable pipelines.
  • Structured Concurrency - Manages concurrent execution paths using lightweight user-space threads that coordinate background work safely without callbacks or promises.
  • Asynchronous Messaging - Allows passing messages between concurrent tasks using asynchronous communication channels that coordinate background work safely.
  • Composable Validation Frameworks - Validates untrusted input data against declarative type definitions and shapes without runtime reflection overhead.
  • Type-Safe Schema Validators - Checks untrusted input against composable type definitions and shapes to coerce and validate values safely without reflection.
  • Error Handling Patterns - Represents computation outcomes as explicit success and failure states to replace traditional error-throwing patterns and ambiguous returns.
  • Functional Collection Utilities - Transforms arrays using pure functions to map, filter, and sort while separating lists from dicts.
  • Non-Blocking Event Loops - Drives asynchronous network servers and child processes using low-level input-output primitives wrapped in typed, testable abstractions.
  • Optional Value Types - Represents values that may or may not be present to safely replace nullable types and prevent runtime crashes.
  • Asynchronous Input-Output Operations - Performs handle-based input and output operations using abstractions instead of global functions for better testing.
  • JSON Processing - Encodes and decodes JSON data by throwing typed exceptions instead of returning ambiguous error states.
  • Shell Command Execution - Enables running external commands and system processes through a dedicated execution function with stream capture.
  • String Processing Libraries - Manipulates strings using Unicode-aware functions that replace standard string operations for proper character handling.
  • Associative Arrays - Creates and transforms associative arrays with dedicated functions for dictionary data structures and key lookups.
  • Functional Pipeline Composition - Provides functional programming utilities to compose, decorate, and control program flow, streamlining pipeline creation.
  • String Manipulations - Replaces standard string operations with multi-byte character processing functions to guarantee proper handling of international text.
  • Collection Separation - Distinguishes lists from dictionaries using dedicated functions and return types to prevent unintended array key confusion bugs.
  • Data Type Validation - Checks untrusted input against composable type definitions like shapes, unions, and optionals to safely validate values.
  • Child Process Execution - Supports spawning and managing child processes using a typed, non-blocking interface for external system execution.
  • Asynchronous Spawning - Spawns and manages child processes and external system commands using a typed, non-blocking interface with stream capture.
  • Sequential Computation Array Execution - Creates and transforms sequential, zero-indexed arrays with dedicated list utilities that maintain index integrity.
  • Type-Safe Comparisons - Compares values consistently and safely using dedicated interfaces and functions that prevent type coercion bugs.

Star history

Star history chart for php-standard-library/php-standard-libraryStar history chart for php-standard-library/php-standard-library

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Php Standard Library

Hand-picked collections where Php Standard Library appears.
  • Async IO libraries

Frequently asked questions

What does php-standard-library/php-standard-library do?

The php-standard-library is a comprehensive toolkit for functional programming and asynchronous networking in PHP, featuring typed data structures, structured concurrency, and composable validation mechanisms. It provides explicit result types and pure collection transformers that separate lists from dictionaries, eliminating traditional array key confusion and error-throwing patterns.

What are the main features of php-standard-library/php-standard-library?

The main features of php-standard-library/php-standard-library are: Asynchronous Network Frameworks, Asynchronous Networking, Network Primitives, Enforced Result Handling, Functional Programming Libraries, Structured Concurrency, Asynchronous Messaging, Composable Validation Frameworks.

What are some open-source alternatives to php-standard-library/php-standard-library?

Open-source alternatives to php-standard-library/php-standard-library include: vkhorikov/csharpfunctionalextensions — CSharpFunctionalExtensions is a functional programming library for C# that provides a framework of monadic containers,… dabeaz/curio — Curio is a Python library for structured concurrency and asynchronous network programming. It serves as a framework… oils-for-unix/oils — Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and… rust-lang/rust-by-example — This project is an interactive programming education resource and tutorial designed for learning the Rust programming… rstacruz/cheatsheets — This project is a comprehensive collection of web development reference guides and technical cheat sheets. It provides… adambard/learnxinyminutes-docs — This project is a collection of programming language references and syntax cheat sheets designed for rapid developer…

Open-source alternatives to Php Standard Library

Similar open-source projects, ranked by how many features they share with Php Standard Library.
  • vkhorikov/csharpfunctionalextensionsvkhorikov avatar

    vkhorikov/CSharpFunctionalExtensions

    2,777View on GitHub↗

    CSharpFunctionalExtensions is a functional programming library for C# that provides a framework of monadic containers, pipeline orchestration tools, and immutable domain object patterns. It implements the result pattern to handle operation success and failure as values, reducing the reliance on exceptions for control flow. The library enables railway-oriented programming by chaining multiple operations into sequences that execute only upon the success of previous steps. It provides specialized wrappers for optional and result types to minimize null checks and nested conditional logic, alongsi

    C#csharpentityfunctional-programming
    View on GitHub↗2,777
  • dabeaz/curiodabeaz avatar

    dabeaz/curio

    4,126View on GitHub↗

    Curio is a Python library for structured concurrency and asynchronous network programming. It serves as a framework for handling thousands of simultaneous TCP connections using non-blocking sockets and high-throughput I/O. The library organizes asynchronous operations into a hierarchy of parent and child coroutines to ensure reliable termination and cleanup of dependent tasks. It provides a toolkit for coordinating these concurrent operations through the use of task groups and timeouts. The framework covers a broad range of concurrency management capabilities, including inter-task communicat

    Python
    View on GitHub↗4,126
  • oils-for-unix/oilsoils-for-unix avatar

    oils-for-unix/oils

    3,288View on GitHub↗

    Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and Bash compatibility. It functions as a structured data shell, integrating JSON and J8 formats to manage complex data without relying on string parsing. The system is distinguished by a C++ transpiled interpreter that converts a subset of Python source code into strongly typed C++ for high-performance execution. It features a garbage-collected typed runtime that supports prototype-based polymorphism, lexical closures, and reference-based variable mutation. To decouple shell logic

    Python
    View on GitHub↗3,288
  • rust-lang/rust-by-examplerust-lang avatar

    rust-lang/rust-by-example

    8,026View on GitHub↗

    This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre

    Handlebars
    View on GitHub↗8,026
See all 30 alternatives to Php Standard Library→