decouple from Slim PHP; add example