wmde/libphutil

Name: libphutil

Owner: Wikimedia Deutschland e.V.

Description: A collection of PHP utility classes

Created: 2016-01-28 08:44:28.0

Updated: 2016-01-28 08:44:31.0

Pushed: 2016-01-28 09:44:45.0

Homepage: http://www.phabricator.com/docs/libphutil/

Size: 7462

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

libphutil is a collection of utility classes and functions for PHP. Some features of the library include:

libphutil Library System A system for organizing, loading and introspecting PHP classes and functions. Uses static analysis to generate, validate and update library contents and includes. Based on Facebook's similar flib system.

Futures Futures (also known as “promises”) are objects which act as placeholders for some future result of computation. They let you express parallel and asynchronous execution with a natural syntax. There are three provided concrete Future implementations: ExecFuture for executing system commands, HTTPFuture for making HTTP requests, and QueryFuture for executing database queries.

Filesystem The builtin PHP filesystem functions return error codes and emit warnings. It is tedious to check these consistently. The Filesystem class provides a simple API for common filesystem operations that throws exceptions on failure.

xsprintf This module allows you to build sprintf()-style functions that have arbitrary conversions. This is particularly useful for escaping data correctly. Three concrete implementations are provided:

AAST/PHPAST An abstract, abstract syntax tree which can make it easier to perform simple static analysis, and a concrete AST for PHP.

Remarkup A Markdown-like lightweight markup language. Remarkup's syntax is defined by parser plugins and fairly easy to extend and configure.

Daemons Enables running PHP scripts as stable, long-lived daemons.

Utilities A handful of solid utility functions.

libphutil is used by


BUG REPORTS

Please update libphutil to HEAD before filing bug reports. Follow our bug reporting guide for complete instructions.

PULL REQUESTS

We do not accept pull requests through GitHub. If you would like to contribute code, please read our Contributor's Guide for more information.

LICENSE

libphutil is released under the Apache 2.0 license except as otherwise noted.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.