PHP FFI
PHP FFI
PHP FFI General Purpose Libraries-
Verified
We've verified that the organization php-ffi controls the domain:
- php-ffi.org
PHP FFI
Preprocess and parse C headers, inspect native binaries and locate them on disk -- in plain PHP.
Documentation · Packagist · Repositories
A set of independent Composer packages around PHP's FFI extension . They cover the whole path from a C header and a shared library to working FFI bindings: the header is preprocessed and parsed into an AST, and the library is found on disk and its exported symbols are read -- without a C compiler or any native tooling. All packages are written in pure PHP and work on Linux, macOS and Windows.
Packages
C headers
-
ffi/preprocessor -- C23 preprocessor: macros, conditional directives,
#include. The output is what the parser is meant to consume. -
ffi/c-parser -- C23 (ISO/IEC 9899:2024 ) header parser that produces an AST.
Binaries
-
ffi/reflection-library -- reads ELF, PE/COFF and Mach-O binaries: exported and imported symbols.
-
ffi/location -- resolves the physical path of a binary in the operating system.
Runtime
-
ffi/env -- status and availability of the FFI extension in the current environment.
Installation
Every package is installed separately with Composer :
composer require ffi/c-parser
Contributing
Bug reports and pull requests are welcome in the repository of the package
they relate to. Please run its test suite (composer test:unit) and code
style check (composer phpcs:check) before opening a pull request.
License
All packages are open-source software released under the MIT License .
Pinned Loading
-
preprocessor preprocessor
Public
PHP FFI-compatible ISO/IEC 9899:2024 (С23) preprocessor implementation
PHP 24
-
c-parser c-parser
Public
PHP FFI-compatible ISO/IEC 9899:2024 (С23) parser implementation
C 2
-
location location
Public
PHP library for determining the physical location of binaries
PHP 13
-
reflection-library reflection-library
Public
Provides basic information about libraries for working with PHP FFI
PHP 4
Repositories
Showing 10 of 13 repositories-
reflection-library
Public
Provides basic information about libraries for working with PHP FFI
php-ffi/reflection-library's past year of commit activity PHP 4 MIT 0 0 0 Updated Nov 27, 2026 -
c-parser
Public
PHP FFI-compatible ISO/IEC 9899:2024 (С23) parser implementation
php-ffi/c-parser's past year of commit activity C 2 MIT 0 0 0 Updated Nov 27, 2026 -
env
Public
A set of API methods for working with the FFI environment
php-ffi/env's past year of commit activity PHP 5 MIT 1 0 0 Updated Nov 26, 2026 -
docs
Public
php-ffi/docs's past year of commit activity MDX 0 0 0 0 Updated Nov 26, 2026 -
location
Public
PHP library for determining the physical location of binaries
php-ffi/location's past year of commit activity PHP 13 MIT 0 0 0 Updated Nov 26, 2026 -
preprocessor
Public
PHP FFI-compatible ISO/IEC 9899:2024 (С23) preprocessor implementation
php-ffi/preprocessor's past year of commit activity PHP 24 MIT 0 0 0 Updated Nov 26, 2026 -
.github
Public
php-ffi/.github's past year of commit activity 0 0 0 0 Updated Nov 25, 2026 -
work-directory
Public archive
Library to interact with current working directory
php-ffi/work-directory's past year of commit activity PHP 1 MIT 1 0 0 Updated Nov 25, 2026 -
ide-helper-generator
Public
IDE autocomplete generator
php-ffi/ide-helper-generator's past year of commit activity PHP 6 MIT 0 1 0 Updated Aug 19, 2026 -
var-dumper
Public archive
FFI types dumper extension for symfony/var-dumper package
php-ffi/var-dumper's past year of commit activity PHP 19 MIT 1 0 0 Updated Mar 25, 2026
People
Top languages
Loading...
Most used topics
Loading...