Zebra_Database is an advanced, compact (one-file only), lightweight, object-oriented MySQL database wrapper built upon PHP’s MySQL extension. It provides methods for interacting with MySQL databases that are more powerful and intuitive to use than PHP’s default ones. It supports transactions and provides ways for caching query results either by saving cached data on the disk, or by using memcache.The class provides a comprehensive debugging interface with detailed information about the executed queries: execution time, returned/affected rows, excerpts of the found rows, error messages, etc. It also automatically EXPLAIN‘s each SELECT query (so you don’t miss those keys again). It encourages developers to write maintainable code and provides a better default security layer by automatically escaping strings. Zebra_Database‘s code is heavily commented and generates no warnings, errors, or notices when PHP’s error reporting level is set to E_ALL.
TbsSQL is a small wrapper class for working with SQL databases within PHP scripts. It has few methods and two properties and it’s only one file per database for installation. Its most interesting feature is that it can protect and format values before merging them into the SQL statement. It has a cache feature, a trace mode, a debug console, and it can return data as arrays, standard objects, specific class objects, or clone objects. It can also delete PHP connection variables after making the connection.
APIcaller is a class that helps you to build API wrappers. You don't have to worry about building URLs, or even about parsing the requested data. As an example, if an API requires an API key, you can set this key as a default value and it'll be always sent with the API request. The API needs to return the data in JSON format, otherwise an execption will be thrown.
Multicrush is a wrapper around pngcrush that distributes the work of brute-force compressing a single image over several pngcrush processes. This gets you a slightly less than a linear speedup, caused by different compression methods having slightly different durations. For example, the author has measured a speedup of 1.92 on a 2-core Intel T5300, and 3.86 on a 4-core Intel Q6600. The only requirements are a copy of pngcrush and at least Python 2.4. If you have version 2.6 or higher, multicrush can automatically detect how many CPUs to use.
Zebra_cURL is a high performance PHP library acting as a wrapper to PHP's libcurl library, which not only allows the running of multiple requests at once asynchronously in parallel, but as soon as one thread finishes, it can be processed right away without having to wait for the other threads in the queue to finish, eliminating wasted CPU cycles from busy waiting. This result is a faster and more efficient way of processing large quantities of cURL requests (like fetching thousands of RSS feeds at once), drastically reducing processing time. This script supports GET (with caching) and POST requests, and basic downloads as well as downloads from FTP servers, HTTP Authentication, and requests through proxy servers. For maximum efficiency, downloads are streamed (bytes downloaded are directly written to disk), removing the unnecessary strain from the server of having to read files into memory first and then writing them to disk.