Mobile/Web Application Backend [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am currently working on a project where I need a backend for a mobile (iOS) and web application. For another project that I worked on a while ago, I used Parse.com as the backend since I did not have to deploy the application to the general public.
Since the application I want to launch may have a sudden burst of requests I wanted to use another service. Therefore, I am currently working on a PHP/MySQL backend that receives http requests and returns JSON encoded data.
Would this be an ideal setup for a scalable backend or is there any other service such as www.backendless.com that would enable me to have the same functionality without having to code everything myself?
I'm not an experienced backend developer and I am currently using most of my time on the backend and not working on the front-end.
Thanks.

PHP is a good language to start with and it's good enough (though not the best), first you need to choose a framework to help you getting what you want faster & more optimized and I suggest the Phalcon PHP framework, this one use some components from the C language which makes it faster than the others
After getting good in PHP please read more about the Restful APIs, because that's how you will handle the data for a mobile application.
And if you want a service for the backend like Parse I suggest Firebase for you, hope my answer helped. Good luck with your app.

Everyone knows Parse is going to be unavailable so next ready option for BaaS is Firebase but keep in mind there are many things that are not Supported by Firebase unlike Parse, for example image storing, push notifications ...
Another option is AWS Mobile Hub

I have been using Cakephp for my last 5 projects, creating backends to use as cms and as rest API (in my case I used JSON as response, but there are other formats). [http://book.cakephp.org/2.0/en/development/rest.html]
It is very easy to create your models, controllers and get started with your API. It also provides a lot of authentication methods, etc.
Parse is shutting down so it is not an option.

Related

What implications does it have to broadcast video live? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've been asked to create a platform that broadcast video live but I have many questions about this.
I would like to build it with PHP, using Laravel for the backend and AngularJS for the front end. Is this a good idea?
Are there any services already built that I could integrate to my application so the video broadcast goes to them but show it using their resources but viewing from my Laravel App?
If there is no services I could "plug in" to my app, what does it implies to develop this technology?
Thank your guys!
I would like to build it with PHP, using Laravel for the backend and
AngularJS for the front end. Is this a good idea?
I've used Laravel and Angular in conjunction and it works fine, there are plenty of resources on the net that can help
Are there any services already built that I could integrate to my
application so the video broadcast goes to them but show it using
their resources but viewing from my Laravel App?
Yes there are many. Brightcove and Livestream (as well as many others) offer video transcoding and players that can be embedded in the websites. I can't recommend one over the other, ive used brightcove in the past but not for livestreaming
If there is no services I could "plug in" to my app, what does it implies to develop this technology?
It implies a lot. You'll need some way to upload the video streams, transcode them on the fly, and then figure out how to distribute them to the end users. It's possible, but I wouldn't recommend it. If you have to go that route I know AWS offers a few services that might help such as Transcoding as a Service as well as live streaming from the Cloudfront CDN.
Edit: Wowza is another service I've played around with that might be worth looking at. Kinda a mix between rolling your own and going with a completely managed service

SNMP monitoring & Web interface [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have read many articles, forums and informations about SNMP.
Even though I struggle with my project.
The goal of my project is to display data that I get from SNMP on a web page. (Nice designed interface). SNMP protocol is compulsory. And it should run on linux server (I want to add more devices in a final part of project e.g. router, switch.)
Could anyone tell me some quick info what has to be done (step by step review)?
I would be glad for every help. I am confused about what is the best way.
Ajax/database/websockets/traps?
I would like to use PHP or Node.js if it possible.
I'm doing a similar project for my internship :
I'm using Perl script for back-end with Net::SNMP for snmp request,
Perl CGI for front-end,
and JSON for DB.
I suggest using a framework to create the web interface, for example Django (https://www.djangoproject.com/) in python.
Then you could use a python library (pysnmp will be great) to retrieve the SNMP data, and create a custom View to show this data in a web page.
If you want to stick with PHP, you can use the functions described here http://php.net/manual/en/ref.snmp.php to access the SNMP server, and again using a framework will be great (Laravel, Symfony ...)

Connecting iOS app to a mysql database connected to a website that is currently online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have already created a website with a mysql database. Now, I am attempting to create an IOS app that will connect to the same database that my website "talks to". All of the tutorials I have seen have relied exclusively upon PHP and have walked through the process of creating the database. My website was not written with PHP, so I am completely lost on how I get PHP to help me in this case. I'm new to all this, so I am not sure what information is helpful, but so you know:
The website templates were written in HTML and CSS,
views page (functionality) written in python,
Flask is the microframework, and
pymysql is the ORM
Any pointers in the right direction would be much appreciated.
If you are using Flask then this is how you need to go through - there are other ways, but I would go for this -
Install Flask REST API to expose rest api from your site. You can get the documentation here - http://www.flaskapi.org/
Expose required API's from your website using flash rest api
Consume those API's with your mobile application.
NOTE: Don't ever expose your database directly to client side. BAD IDEA. Always use a middleware, could be php, python, .net - does not matter what it is.

What should be the right approach for developing mobile apps based on a PHP website which will access the same MySQL database which the website uses? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm a Web Developer(PHP Developer) by profession. So, I'm asking this question from web developer's point of view and expecting the answer with the same perspective.
There is one running social website developed in PHPfox(a social networking platform created in php)
Now I've received a requirement from the client to develop Android and iOS apps just like Facebook mobile app based on this website means the app should also resemble the website's functionality. So, in turn these projected apps will be going to access the same MySQL database which the website is currently using. The main objective is the website and these apps should work in sync just like Facebook website and Facebook mobile app.
So, my question is what should be the step-by-step, right, the best and optimum approach in this kind of scenario?
On website they have used MVC pattern of development and they have used Twig as a template engine to display the webpages which should not be the case in mobile apps.
The mobile teams(iOS and Android) teams are working on the UI design of the app. But what should be my role I'm not clear about it. Please explain me the correct step-by-step approach from web developer's perspective.
Thanks.
Well the best way to do this is to have native mobile apps, one version for Android and one version for IOS. Your role would be to create a webservice that can access your database and enable the mobile app developers to call on certain urls (which would be functions in that webservice) that would reply with data presented in JSON.
So start out by thinking of the functions that they would need, how would they call it, what arguments would they pass and how would they receive the data.

Internal server communication php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am building an app that will first be a web app and soon will get built into a mobile app.
My approach to this is. Have core app built and deployed on one machine. The web-app will be on a different machine (both on amazon). The web app is just ui wrapper in this situation. It will make all the calls to the core app to function.
My question here is. What is the best way for the webapp server and core app server to talk to each other?
Does everyone just use http calls for this purpose?
Are there any open-source tools/libraries that help here?
Platform : lamp with codeigniter on amazon.
You can create your own REST based API service and communicate to it from different applications. You can consider JSON as request and response data type, as it is most optimized and widely acceptable.
So, the technique is:
Separate application functions from front-end functions.
Let the API handle all the application functions.
Let your front-end system(s) call the application functions through the API.
Create restful web service for this purpose. Use JSON as an output data. This will make it easy to access in all platforms.
REST is my first choice. Since you mentioned that you are using codeigniter, this align with the way Codeigniter works. For the message type you can use json/XML , however since json is JavaScript object, I think you should use json.

Categories