0

Need a backend advice. I have a php webhosting with a mysql database and im looking for a simple REST API backend solution so that my android app could fetch data from mysql via api. Any suggestions?

Comments
  • 5
    totally biased advice: don't use php
  • 0
    @JhonDoe its a simple thesis app, I dont want to overcomplicate it
  • 2
    acknowledged, any particular stuff you need help with?

    - make a simple web token based authentication

    - serializing php objects as json can be a bitch
  • 0
    There isn’t any out the box REST API solutions it’s something you’re going to have to dev yourself.

    There are frameworks that make it easier such as Laravel, but you still have to integrate it.
  • 0
    Laravel has a micro-API thing
  • 1
    There are many tools available through composer that are pretty much plug and play that you could add man :D you can just have a folder structure in which you have those particular sets of endpoints. yourpagewhatever/api and inside api you can take care of your particular routes by orchestrating everything through your index file
  • 0
    For php, 100% Laravel.
  • 0
    For PHP, try 000webhost.com, if you want a clean name use dot.tk . But FYI PHP is pretty much dead and JavaScript has taken over (it was hard to let my 4 years PHP exp go). A nodejs instance can run anywhere with express and db bindings
  • 3
    @werlious php is dead 😂omg what crack pot did you smoke today, because I need some!

    @zemaitis if you want something you can quickly build on, check out slim.
    http://www.slimframework.com/
  • 2
    @werlious guess someone should tell my employer as well as all of my customers that php is dead. Also the maintainers should be told since they keep updating the whole language, frameworks keep popping up and the language keeps evolving with conferences and shit. But yeah dead totally
  • 0
    "slim" it is a very easy, express.js like API library for php
  • 1
    @werlious whilst nodeJS is good. PHP is by far dead and will single handily out perform nodeJS in terms of queries per second tenfold. (I write in both php and nodeJS) and php is so much easier to configure and use.
  • 1
    @werlious I wouldn't recommend 000webhost since they store(d) passwords in plaintext.
Add Comment