The core functionality for the PHP edition of Pattern Lab.