A PHP wrapper around Buffer API