Hosting iOS back-end app logic on google cloud - php

I have an iOS app with its backend logic written in PHP and using MySQL on Cloud SQL. I'm trying to figure out how to connect the iOS app to the PHP files through Google App Engine. I'm using Standard environment.
I was looking into Google Cloud Endpoints but they only seem to work for Java and Python files. Have I misunderstood this?
Any guidance would be greatly appreciated,
Cheers :)

As you are using GAE Standard, you would be using Cloud Endpoints Framework, which does not support PHP.
Your options are:
Use GAE Flexible and Cloud Endpoints OpenAPI, which does support PHP.
Don't use Cloud Endpoints, instead use Apigee.
Don't use Cloud Endpoints, instead use a 3rd party API framework such as Slim

Related

Sending data to Google App Engine/Datastore

I have an Android app a Simple form consist of some fields, I also have a Web server using Google App Engine in PHP. I was confused by This, should i send the Data from my Android app directly to my webserver, display the data in web server using local and then later on update thus data in datastore or should i send the data from my android app directly to the datastore and display in my webserver? I'm new with this Android and with this Google App Engine/Datastore, I hardly can't find proper Tutorials on Google App Engine using php. I think only few uses this thing.
Any Suggestion well do.
The typical solution would be to provide an API for your app. I'm not familiar with PHP these days but there are bound to be plenty of REST frameworks that will take care of all the JSON conversion for you.
Your API (assuming it's PHP) can then take care of doing any necessary validation, authentication, performing queries, etc, against Datastore. This may help.
If you're familiar with Java (you're writing an Android app) or Python, you can look at Cloud Endpoints.
If you want a PHP library to access Datastore from GAE, check this out:
https://github.com/tomwalder/php-gds

Using PHP with Google App Engine to administer Google Apps

I am trying to create a Google App Engine Web application in PHP that is capable of administering my Google Apps users and groups and create detailed per-user reports.
The built-in PHP API is appallingly inadequate with seemingly no functionality to perform user administration so I wanted to use the Google APIs Client Library for PHP but I'm having trouble including this API in my Google Apps project.
Can anyone suggest how I can best approach this?
Should I use the built-in PHP API provided by Google App Engine? If so, which classes can I use to perform user management?
How can I use the Google API PHP Cient together with my Google App Engine?
Should I just abandon Google App Engine and host the web app on my own servers?
Should I use something else like Java instead of PHP?
Thanks in advance for any help and or suggestions on how to proceed.
Did you do a quick google search on using the Google API PHP Client from App Engine?
Is so, you might have seen this article which I guess explains the entire thing for you.
In your project you need to select ADMIN SDK which should give you access to all api's realted to that. Directory API etc.
At least that is what I think and how I have it setup. Only since I am a very little skills I struggle to use the PHP library ;)

iOS Application, Website, and Web Service - Should I use a framework?

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.

Consume a C# web service from php in azure

First of all i am going to use REST with JSON because of its simplicity.
So i dont need nusoap etc. The web service is written in C# and runs on azure. After trying i successfully runed a hello word PHP application on azure.
My question is how to consume these webservices? The classic php way ? Or use a library from azure for PHP sdk? Because i saw that libraries have a curl and some other functions.
You can consume Web services written in C# on Azure in the same way as you would consume any Web service running on any platform. Deployment to Azure makes no difference.
The PHP toolkit for Azure (tutorial documentation here: http://azurephp.interoperabilitybridges.com/tutorials) is a library for PHP that lets you work with Azure-specific features. This includes
Azure table, blob and queue storage
Diagnostics and remote access
Automating deployment
You won't need anything from the Azure for PHP library to just consume simple a C# Web service.

Google App engine with external app?

Is it possible to use the Google App Engine with datastore only and keep your application on an external traditional server?
I'm interested in the GAE for Business SQL service coming soon but I only want to use GAE for the database. I would like to keep the php application on a traditional server for a variety of reasons.
Is this possible?
Yes it is possible and GAE is fairly used in this specific scenario; think about the hundreds of Iphone/Android applications that use GAE as back-end.
A simple common design would have:
A Web API to communicate with GAE datastore since you can't connect directly to it from your php application. Have a look to restlet for a cool RESTful Java web framework that supports GAE or the new Appengine-rest-server Python project .
A security check to validate that the requests are coming from the php application (HMAC / SSL).

Categories