Giter Site home page Giter Site logo

memsql / libphutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phacility/libphutil

0.0 107.0 0.0 8.19 MB

A collection of PHP utility classes

Home Page: http://www.phabricator.com/docs/libphutil/

License: Apache License 2.0

PHP 40.21% Shell 0.01% C++ 57.74% Makefile 0.04% Yacc 1.69% Lex 0.32%

libphutil's Introduction

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.

libphutil's People

Contributors

joshuaspence avatar vrana avatar hach-que avatar bobtrahan avatar chadlittle avatar garoevans avatar rvanvelzen avatar afaquejam avatar tuomaspelkonen avatar firehed avatar anhnhan avatar sophiebits avatar asherkin avatar deedy avatar wez avatar relrod avatar pengstanford avatar ljalonen avatar korvinszanto avatar seporaitis avatar bhamiltoncx avatar andrewjcg avatar yungsters avatar kwadwon avatar katherinez avatar indiefan avatar cburroughs avatar zrait avatar revi avatar wrotte avatar

Watchers

Austin McKinley avatar Carlos Bueno avatar Allan Carroll avatar Hristo Stoyanov avatar Alexander Skidanov avatar Tara Fly avatar Eric Frenkiel avatar Alex Reece avatar MemSQL avatar Ankur Goyal avatar Wayne Song avatar  avatar Adam avatar Pedro Paredes avatar Jack Chen avatar James Cloos avatar Rob Walzer avatar  avatar Francisco Machado avatar  avatar  avatar Akash Katipally avatar Momchil Tomov avatar Miguel Duarte avatar Emanuele Cesena avatar  avatar Cary Yang avatar  avatar Drew Paroski avatar JoYo avatar  avatar  avatar Weihang Fan avatar Jiajia Zhao avatar Rumen Hristov avatar  avatar  avatar  avatar Katie Siegel avatar Zhou Sun avatar  avatar Brian Chen avatar Timothy Li avatar Ben Zhang avatar  avatar Andrew Goetz avatar Alex Steere avatar Sasha Krassovsky avatar  avatar Jeremy Wright avatar mandrews avatar Conor Doherty avatar Alex Kouprin avatar Sorawit Suriyakarn avatar  avatar Francisco Magalhães avatar Justin Benson avatar Evan Bergeron avatar Peter Faiman avatar  avatar  avatar Dmytro Soboliev avatar  avatar  avatar Micah avatar Alexey Maykov avatar Nick Kline avatar  avatar  avatar Sarah Wooders avatar  avatar  avatar Aditya avatar Tewei Luo avatar Alec Powell avatar Gorkem Ozbek avatar Steven Shi avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Ryan Gavin avatar Nate Horan avatar Haoran Xu avatar Benjamin Campbell avatar Carl Nelson avatar Steve Brudenell avatar  avatar  avatar Michael Gallegos avatar  avatar Sam Gyory avatar  avatar Sohail Sidique avatar  avatar Michael Harris avatar Szu-Po Wang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.