Still a pretty nice tool.
Adminer: Database management in a single PHP file
31–36 of 36 posts
Re: Adminer: Database management in a single PHP file
#32"single" PHP file. Still a pretty nice tool.
Development evidently happens in the traditional sense with the project in a nicely defined tree.
The build process looks pretty gnarly, but it works! https://github.com/vrana/adminer/blob/master/compile.php
Re: Adminer: Database management in a single PHP file
#33This "in a single file" property is probably the most unique, and maybe the most enviable feature of PHP. I don't think you can do it in any other language, except maybe by jumping through hoops (e.g. jbang and uv come close).
Go lets you embed arbitrary files into the binary it creates. If you do that and also compile it to be standalone you have a one-.exe solution.
Re: Adminer: Database management in a single PHP file
#34This "in a single file" property is probably the most unique, and maybe the most enviable feature of PHP. I don't think you can do it in any other language, except maybe by jumping through hoops (e.g. jbang and uv come close).
Re: Adminer: Database management in a single PHP file
#35In the same vein, I have a single-file library which allows you to use flat files as key-value DBs. Uses SQLite under the hood. Sharing in case someone finds it useful: https://github.com/aaviator42/storx
This is a really neat concept that I think would be fun to use. Looking at the usage, I thought this syntax was interesting: //here's how we read a key $sx->readKey('username', $username); Is there a reason you are requiring a variable to be passed by reference to the readKey function, instead of doing: $username = $sx->readKey('username'); EDIT: ahh, I see you have a returnKey('key') function that works that way
Re: Adminer: Database management in a single PHP file
#36phpMyAdmin was (is?) such a great tool and really got me into SQL/MySQL over a decade ago. Not to mention the whole PHP stack was so fun to use and let you iterate quickly and just build stuff with an immediate feedback loop - just reload the page and your updated server-side code is executed.
I'm surprised that we've had a number of new languages and advancements in the past ten years or so, but none that tried to fill the same space as PHP & co did... unless I missed it. But then, I suppose PHP itself is good enough and the people using it never felt a need for anything new. Laravel solved the lack of application structure / design handrails, and Facebook solved or worked on the bigger issues around the…
Despite that, php has its limits, and it's important to know them, and the workarounds for most of them. What is also tricky is a total lack of support from Azure for example.