leocavalcante/siler
Siler is a zero-dependency PHP library/micro-framework of high-level functional abstractions for declarative apps and routing. Fast, flat-file friendly, and works well with Swoole. Note: the repository is archived; Nano is recommended as an alternative.
Pros:
$_SERVER['QUERY_STRING'], improving compatibility with modern PHP frameworks (e.g., Laravel’s request handling) where QUERY_STRING may differ from the actual request URI.Cons:
File facade or Eloquent for simple data models.$_SERVER['QUERY_STRING'] mismatches Laravel’s request URI handling (e.g., in routed requests).Cache::store('siler')).DateTimeImmutable, ArrayObject).Why Flat Files?
filesystem, cache, scout) don’t address?Maintenance Plan
Data Integrity
Scaling Assumptions
Alternatives
Cache with file driver) been evaluated?Laravel-Specific Risks
File::get() with Siler’s Storage::read() in modules.SilerCache::put()) for easier future migration.Model::toBase() or custom scripts to sync data between Siler and a database.$this->app->bind('siler', function () {
return new \Siler\Storage(__DIR__.'/storage/siler');
});
config/filesystems.php to point to Siler’s storage.$_SERVER fixes don’t introduce regressions (e.g., in routed requests).str_contains) if needed.php -l and phpstan to catch compatibility issues early.File::put() for config files).rsync, cron jobs, or Laravel’s backup package.chmod, chown) become critical for security.How can I help you explore Laravel packages today?