PHPackages                             loro-dev/loro-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. loro-dev/loro-php

ActiveComposer-plugin

loro-dev/loro-php
=================

PHP bindings for Loro CRDT via UniFFI.

v0.1.2(today)00MITPHPPHP &gt;=8.1

Since Jun 12Pushed todayCompare

[ Source](https://github.com/huanghantao/loro-php)[ Packagist](https://packagist.org/packages/loro-dev/loro-php)[ RSS](/packages/loro-dev-loro-php/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

loro-php
========

[](#loro-php)

PHP bindings for [Loro](https://github.com/loro-dev/loro), built with UniFFI and PHP FFI.

Requirements
------------

[](#requirements)

- PHP 8.1+
- `ext-ffi`
- `ffi.enable=1`

Install
-------

[](#install)

```
composer require huanghantao/loro-php
```

Composer will ask whether `huanghantao/loro-php` may run as a plugin. Allow it to download the native library for your platform.

For CI:

```
composer config allow-plugins.huanghantao/loro-php true
composer require huanghantao/loro-php
```

To use your own native library instead:

```
export LORO_PHP_LIBRARY=/absolute/path/to/libloro_php.dylib
```

Usage
-----

[](#usage)

```
