The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started


The CachedDereferencer will cache any loaded schemas and the final dereferenced schema. This can make loading local schemas a little bit faster and loading remote schemas significantly faster.


The CachedDereferencer accepts any cache that implements the PSR-16 Simple Cache Interface. The following example uses sabre/cache.

$cache        = new \Sabre\Cache\Apcu();
$dereferencer = new CachedDereferencer(new Dereferencer(), $cache);

$schema = $dereferencer->dereference('');