PHP module RESTful app written in zephir-lang
So as many of you have probs experienced, your happily using something like Postman and you upgrade it only to find your collections are now broken or the app won't start.
This happened to me...again...so I have moaning to my cousin and he said, "Why not build your own? Been thinking about doing one myself" so he challenged me to a "dev-off" where we'd each take a few months and build out own app.
Originally it was to be built in Python using kivy and kivyMD as I wanted to get to know kivy. Sorry kivy team and devs but the experience was a painful one! The amount of headaches I had just getting stuff to build, position correctly and stay stable was too much my hair-line could take. So after about 3 weeks or so of on and off dev I threw in the towel.
I'd been toying with the idea (after a dream I had) with making an app in Zephir-lang as I use it for my kytschBASIC language (https://kytschbasic.org) and I just love it! So I figured I'd see if you could make a pure HTML, CSS and JS app that'll run as a PHP module.
And this is what come of it.
This is more of a tech demo than an actual functional app. That doesn't mean it can't be used as such but its just a tool for me to play around with.
- PHP 7+
- CURL
- PHP-CURL
Copy the module located in the ext/modules folder to your PHP modules folder on your server. https://github.com/kytschi/plonky/blob/main/ext/modules/plonky.so
Now create an ini to load the module in your PHP modules ini folder.
; configuration for php to enable plonky
extension=plonky.so
You can also just create the ini and point the extension
to the folder with the plonky.so
.
And don't forget to restart your webserver.