ffi/proxy

PHP FFI Proxy

1.0.2 2023-01-01 13:50 UTC

This package is auto-updated.

Last update: 2024-03-29 16:42:10 UTC


README

PHP 8.1+ Latest Stable Version Latest Unstable Version Total Downloads License MIT

badge.svg

A set of classes for creating FFI proxies.

Requirements

  • PHP >= 7.4
  • ext-ffi

Installation

Library is available as composer repository and can be installed using the following command in a root of your project.

$ composer require ffi/proxy

Usage

class Example extends FFI\Proxy\Proxy
{
    public function __construct()
    {
        $this->ffi = \FFI::cdef('...');
    }
}