Adapters to compile and cache static resources from within PHP