3 ms·
> Does anyone have any examples of any other single-file app with a comprehensive interface like Files app that is entirely self-contained? phpLiteAdmin (https
by dreadnaut 5y ago
> Does anyone have any examples of any other single-file app with a comprehensive interface like Files app that is entirely self-contained?
phpLiteAdmin (https://github.com/phpLiteAdmin/pla https://github.com/phpLiteAdmin/pla) is developed as separate PHP, JS, and CSS files. A "build" script merges all into a single PHP script, which includes compressed resources inlined after a call to `__halt_compiler()`. The same code can run as separate files, or as a single one.
I wrote the original "build", years ago, as we started extracting classes out of a procedural single file.
[edit] Link to the interesting bit: https://github.com/phpLiteAdmin/pla/blob/master/phpliteadmin-build-template.php https://github.com/phpLiteAdmin/pla/blob/master/phpliteadmin...
- mjau-mjau 5y agoThat's good, but surely you won't compare phpliteadmin with Files app in terms of the interface.