lada-cache icon indicating copy to clipboard operation
lada-cache copied to clipboard

Add support for Lumen

Open spiritix opened this issue 4 years ago • 3 comments

The library has not yet been tested with Lumen, it seems that there are some issues at least.

spiritix avatar May 19 '20 12:05 spiritix

We are using lada-cache in production on Lumen. As far as I can remember we only needed to provide a config_path function.

`<?php

if ( ! function_exists('config_path')) { /** * Get the configuration path. * * @param string $path * @return string */ function config_path($path = '') { return app()->basePath() . '/config' . ($path ? '/' . $path : $path); } } `

merlinblack avatar Jun 22 '21 01:06 merlinblack

Looks like it's zero point to keep supporting Lumen now, due to the release of Laravel Octane. Lumen users should upgrade applications to Laravel if they wanna keep their apps up with new features and performance boosts.

michael-rubel avatar Aug 20 '21 11:08 michael-rubel

Yeah I agree, if the only reason for using Lumen was performance, then it's better to upgrade to Laravel anyway. Framework bootstrap only makes a very small part of application loading time, and nowadays with PHP8 and even Octane it's pretty much negligible.

spiritix avatar Aug 20 '21 11:08 spiritix