PHPackages                             nadybot/aolib - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nadybot/aolib

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nadybot/aolib
=============

An amphp3-based client library for the Anarchy Online chat server

0.1.12(3mo ago)033.0kAGPL-3.0-or-laterPHPPHP &gt;=8.1.17CI passing

Since Apr 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Nadybot/aolib)[ Packagist](https://packagist.org/packages/nadybot/aolib)[ RSS](/packages/nadybot-aolib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (14)Used By (0)

Generic AMP3-based client and libraries for Anarchy Online Chat-bots in PHP
===========================================================================

[](#generic-amp3-based-client-and-libraries-for-anarchy-online-chat-bots-in-php)

[![PHP Tests passing or not](https://github.com/nadybot/aolib/actions/workflows/php.yml/badge.svg)](https://github.com/Nadybot/aolib/actions/workflows/php.yml)

This is a very basic library that provides AMP3-based async classes to deal with connections to the chat-server of Anarchy Online. It consists of

- a tokenizer to extract single packets out of an endless stream (files, sockets, …)
- a connection-handler that utilizes the tokenizer to parse these string-packets into binary packets
- a parser that parses these binary packets into AO-packets
- an MMDB database class to access builtin-strings
- a basic client that combines all this, and keeps track of known uid &lt;=&gt; name mappings, as well as make the ever important lookup of these available as if these calls were sync

You have to be familiar with the AMP way of dealing with things, otherwise, this is useless to you.

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

[](#basic-usage)

```
