Skip to content

andrasq/quicklib

Repository files navigation

quicklib

Quicklib PHP Toolkit, Version 0.31.1

Copyright (C) 2013-2014 Andras Radics Licensed under the Apache License, Version 2.0

This is a toolkit of utilities I started writing while thinking about ways to process very high volume data streams using PHP. My goal was to keep things simple and make them fast, because the speed of the whole is only as fast as its slowest component(*).

This is a work in progress, but some parts are stable and production ready. Enjoy! Hope you find the toolkit useful.

Andras Radics andras (at) acm.org

The components: Quick/

  • autoloader (flat, tree; namespaced)
  • unique keys
  • fast logger (file, syslog)
  • fast db access (mysql, sqlite)
  • fast key-value store and caches
  • unix co-process control
  • compiled utility for merging sorted numeric ids
  • xhprof wrapper
  • phpunit helpers
  • dependency injector
  • rest api support
  • fast fifo data streams (journal files)
  • message queue execution (http and /bin/sh)

Planned:

  • fast fifo data streams (streams)
  • fast data transport (qtail)
  • db active records (future)

Manifest:

  • lib/Quick/ - the php library
  • test/ - PHPUnit unit tests
  • src/ - sources for C helper utilities
  • bin/ - helper utility programs
  • ext/ - place for external dependencies (eg phpunit)

(*) Amdahl's Law.