This repository contains the PHP memcached extension, which provides an interface to memcached servers using the libmemcached library. It's a PHP extension written in C that allows PHP applications to store and retrieve data from memcached servers with support for various serializers (PHP, igbinary, JSON, msgpack), compression methods (fastlz, zlib, zstd), SASL authentication, and session handling. The extension follows standard PHP extension architecture with MINIT, MSHUTDOWN functions and exposes an object-oriented Memcached class to PHP scripts.
The php-ast repository is a PHP extension that exposes the internal Abstract Syntax Tree (AST) used by PHP 7 and 8. It provides functions to parse PHP code into an inspectable AST structure that mirrors PHP's internal compiler representation, enabling static analysis, code transformation, refactoring tools, and other metaprogramming tasks. Unlike pure-PHP AST parsers, this extension leverages PHP's own parser for maximum performance and accuracy. The extension implements a sophisticated versioning system to maintain compatibility across PHP releases. Rather than breaking when PHP introduces new language features, it defines AST versions (currently 50 through 120) and can represent newer constructs using older node types when necessary for backward compatibility. This allows developers to write analysis tools that work across multiple PHP versions without constantly updating for each new release. Key architectural components include the C-based extension core that interfaces with Zend's parser, a comprehensive metadata system describing node kinds and their associated flags, and utility functions for AST inspection. The extension handles the full PHP grammar including recent additions like attributes, match expressions, nullsafe operators, constructor property promotion, and enum support. In production use, this extension serves as the foundation for many PHP static analysis tools, enabling them to operate with near-native performance by avoiding the overhead of pure-PHP parsing while providing a stable, versioned interface to PHP's AST structure.
php-ext-brotli is a PHP extension written in C that integrates the Brotli compression library into PHP. It exposes userland functions for one-shot compression/decompression, including serialized-value variants, and provides an output compression layer controlled by php.ini directives such as brotli.output_compression and brotli.output_compression_exclude_types. The extension can build against a bundled Brotli submodule or a system libbrotli, and reports library linkage and APCu serializer status in phpinfo().