it's the first time for me make android app with Phonegap +Mysql + PHP , so i hope you give me advice about what is the best php framework for phonegap ?
You need to understand that phonegap is a client side technology and PHP is server side. PhoneGap app only communicates with server for example with restful web services. From a client side, it does not matter what php technology you use, as long as you send data with "understandable way" (eg. JSON).
I think that question you would like to ask is: what is the best php framework for making web services.
Related
Can you use ASP.net with retrofit? I'm currently using PHP but might migrate to ASP.net. Any info or advise would be much appreciated.
The network libraries used in android(retrofit, volley etc) are not dependent on any server side languages like asp.net, php etc.
Can you use ASP.net with retrofit?
Yes you can use ASP.net with retrofit
By the way retrofit, like any other network libraries run on the client side and hence has no association with backend technology
So let me tell you what REst Api is.
It is known as REpresentational State Transfer. Which means that when you use MVC framework, the MVC framework is stateless and it gets data from Rest Api. This is the benefit of using MVC. On retrofit you are doing the same work i.e making an Okhttp connection which helps you to communicate with url of backend. Then backend processes data and gives you the response back. Thats why the backend does not matter whatever you do from.
Happy Coding!
We have to develop an application with more plattform. We would use the framework PhoneGap. For our application we need services of backend, the question is: Does PhoneGap support PHP?
If it doesn't support PHP. In which way we can solve the problem?
The most important thing is: make call server
(Get and Post), parsing a json and other functions
that PHP gives.
Phonegap does not have a server. You need to call via Ajax to remote servers.
The backend can be in any language which supports HTTP calls, as PhoneGap is an independent client.
You can use PHP to write an API for use within your Javascript PhoneGap application.
I can recommend the Laravel framework to accomplish this.
Yes...you can use PHP or any PHP framework to give backend for mobile app made using phonegap/cordova....point is phonegap/cordova app will be on client mobile which won't understand PHP embedded in phonegap html files....so write an API amd place it on a server and then make AJAX calls to server to do database and other backed operations
Try to return JSON data from the PHP API.....it's a famous data structure and supported by many applications
I am developing an iOS application that will be communicating with a PHP/MySQL web service to send/receive data. My plan is to also have a website that has similar functionality to the iOS application and will also interact with the web service. Should I be using a framework to build this web service (I am thinking about Laravel)? Is it a good idea to have the web service separate from the website?
Thanks.
If you are building a native application and requires connection to your website or collecting info, I suggest you to build you own API to access the data from ios using json.
I have heard about PhoneGap that can convert Web based app into a mobile app. I was wondering if PhoneGap can "convert" php codeigniter web based app into a mobile one..? I've also heard about Titanium software that does something similar... I wouldn't want to rewrite whole app to make it usable on android devices.. Any advice would be appreciated
Thanks
Phonegap just make use of web tech, such as js, css, html. It 'convert' it to mobile apps. You can interact with server side which is use php, asp, jsp or other server side script use ajax.
hopely useful: http://www.indiageeks.in/phonegap-jquery-ajax-example-jsonjavascript-object-notation-response/
If got a task to create a mobile application for iOS, Android and WP. This application needs to access a mySQL database which is already in use by the website running php.
What I found in the meantime, is that I have to create a php webservice and use this webservice to access the data in the mySQL database.
Since I did not found any clear advice which way is the best to do it (JSON, XML, REST, etc) - I just wanted to ask you, is there a kind of best practice which technologies should be used for the php webservice?
Additional it would be great for me if someone knows a good tutorial for the recommended technology.
Thanks a lot.
I am arriving a bit late but here is my answer : I believe that the easier way currently available is a PhoneGap application (with Sencha Touch or jQuery Mobile as a javascript framework) talking to the server through a simple PHP webservice. PhoneGap allows you to build an Android, iOS and WP app with the same codebase.
We use that technology in my company and it works great.