PHPackages                             enygma/adventurelib - 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. enygma/adventurelib

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

enygma/adventurelib
===================

A PHP port of the Python 'adventurelib' library

14PHP

Since Mar 20Pushed 7y agoCompare

[ Source](https://github.com/enygma/adventurelib)[ Packagist](https://packagist.org/packages/enygma/adventurelib)[ RSS](/packages/enygma-adventurelib/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Adventurelib
================

[](#php-adventurelib)

The PHP Adventurelib library is a PHP implementation of the [Python adventurelib library](https://adventurelib.readthedocs.io), trying to stay as faithful to the functionality as possible.

There are differences between how the two languages function that make the interfaces a bit different, but the spirit of the library is the same: to provide a simple structure to create text-based adventure games.

Making a simple game
--------------------

[](#making-a-simple-game)

Here's an example of creating a simple one-room game. In a PHP file (such as `game.php`) put the following:

```
