ffi/proxy

0.2.0 2021-11-10 14:59 UTC

This package is auto-updated.

Last update: 2022-01-10 15:16:14 UTC


README

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('...');
    }
}