ffi/proxy

PHP FFI 代理

1.0.3 2024-08-14 16:07 UTC

This package is auto-updated.

Last update: 2024-09-14 16:18:58 UTC


README

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

创建 FFI 代理的一组类。

需求

  • PHP >= 7.4
  • ext-ffi

安装

库可以作为 composer 仓库使用,并在项目的根目录中通过以下命令安装。

$ composer require ffi/proxy

用法

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