PHPackages                             mtrunkat/libphutil - 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. mtrunkat/libphutil

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

mtrunkat/libphutil
==================

Composer compatible version (not official) of Libphutil library.

251PHP

Since May 13Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mtrunkat/php-libphutil-composer)[ Packagist](https://packagist.org/packages/mtrunkat/libphutil)[ RSS](/packages/mtrunkat-libphutil/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer compatible version of Facebook's Libphutil library
-----------------------------------------------------------

[](#composer-compatible-version-of-facebooks-libphutil-library)

This is not offical port. I created this mainly to use [**Futures**](https://secure.phabricator.com/book/libphutil/article/using_futures/) so the rest of the **library may not work correctly**.

Script that I use for conversion can be found here [mtrunkat/php-libphutil-composer-convertor](https://github.com/mtrunkat/php-libphutil-composer-convertor).

For more information about Libphutil check [Github repository](https://github.com/facebook/libphutil) and official [documentation](https://secure.phabricator.com/book/libphutil/).

### Installation

[](#installation)

Add this ([Packagist](https://packagist.org/packages/mtrunkat/libphutil)) library into you composer.json:

```
{
    "require" : {
        "mtrunkat/lbphutil" : "dev-master"
    }
}
```

And install it via `php composer.phar install` or `php composer.phar update`.

### Example use

[](#example-use)

All the **classes** of original library are moved into **Facebook\\Libphutil namespace** and each **function \[functionname\]** located in some file \[filename\].php is converted into static method **Facebook\\Libphutil\\Functions\[filename\]::\[functionname\]**.

So for example in original library you use Futures this way:

```
