PHPackages                             ininids/aam-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. ininids/aam-php

ActiveLibrary

ininids/aam-php
===============

AAM PHP bindings

1.4.0(yesterday)00MIT OR Apache-2.0PHPPHP &gt;=8.0

Since Mar 21Pushed yesterdayCompare

[ Source](https://github.com/INiNiDS/aam-php)[ Packagist](https://packagist.org/packages/ininids/aam-php)[ RSS](/packages/ininids-aam-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

aam-php
=======

[](#aam-php)

PHP bindings for `aam-rs` using `FFI` on top of the stable C API.

What you get
------------

[](#what-you-get)

- Parse AAML from strings.
- Forward lookup (`key -> value`) and reverse lookup fallback (`value -> key`).
- Simple zero-dependency wrapper class for scripting and prototyping.

Build native library
--------------------

[](#build-native-library)

```
cargo build --release --features ffi
```

By default `AamPhp` reads the library from:

- `AAM_PHP_LIB` env var, if present.
- `target/release/libaam_rs.so` as fallback on Linux.

Basic usage
-----------

[](#basic-usage)

```
