← Winnitude! Search  ·  Reader Mode (763 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 76 LINKS

PHP FFI

PHP FFI

PHP FFI General Purpose Libraries README.md

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

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

  1. preprocessor preprocessor
    Public

    PHP FFI-compatible ISO/IEC 9899:2024 (С23) preprocessor implementation

    PHP 24

  2. c-parser c-parser
    Public

    PHP FFI-compatible ISO/IEC 9899:2024 (С23) parser implementation

    C 2

  3. location location
    Public

    PHP library for determining the physical location of binaries

    PHP 13

  4. 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
View all repositories

People

Top languages

Loading...

Most used topics

Loading...