Customization of libphutils for c4science. See also, rPH
Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
6beb131060ef | aubort | Merge with Stable Week 13 | Apr 17 2019 | ||||
796735bf0435 | aubort | Allow phabricator interactive commands to run without a TTY (for automation of… | Dec 19 2018 | ||||
a95adc0ea0f8 | aubort | Merge with Stable Week 50 | Dec 15 2018 | ||||
a692c6547f8c | aubort | Merge with Stable Week 49 | Dec 10 2018 | ||||
943d89012cd2 | aubort | Merge with Stable Week 48 | Dec 5 2018 | ||||
dd273da90839 | aubort | Merge with Stable Week 14 | Apr 13 2018 | ||||
68b9580d4b45 | aubort | Add missing files | Jan 31 2018 | ||||
e9831f34b01a | aubort | Merge with Stable Week 3 | Jan 31 2018 | ||||
d0de39cf48be | aubort | Add F90 extension to be highlighted as Fortran | Nov 27 2017 | ||||
a7cdbd2c260b | aubort | Merge with Stable Week 45 | Nov 16 2017 | ||||
927c0d5c36e2 | aubort | Merge with Stable Week 37 | Sep 20 2017 | ||||
50b3efadf191 | aubort | Merge with Stable Week 32 | Aug 14 2017 | ||||
638e5196d1a6 | aubort | Merge with Stable Week 31 | Aug 6 2017 | ||||
6591a6f63425 | aubort | Merge with Stable Week 26 | Jul 7 2017 | ||||
5a5fc917ce26 | aubort | Merge with Stable Week 17 | May 2 2017 |
README.md
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:
- csprintf(): safely escape data for system commands
- jsprintf(): safely escape data for Javascript
- qsprintf(): safely escape data for MySQL
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.