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
Related
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 5 years ago.
Improve this question
I am developing a blog using Laravel 5.6 and PostgreSQL.
I have made a fully functional blog and have successfully deployed it in Heroku in Free tier.
Initially I have made a photo upload system in which user file uploads are stored in public/storage and filename is stored in a table field in posts table.
But in heroku we can't do this due to their ephemeral filesystem.
Now I neither know how to use or would be able to afford amazon s3 solution.
Don't want to store images in database directly either. Because soon I will be making a complete social networking type app for fun in my college.
As a student what I can think of is to directly upload the image in a MY google drive account public folder instead of file system.
And then retrieve that also.
I googled for a solution, but I didn't find what I am wanting. I have no experience working with APIs before.
Really need your help.
Regards.
You need a Laravel drive connector in order to do this. Best bet is to search on GitHub for "Laravel Google Drive" as there are several and without more information it's difficult to recommend one over another. Another option is to use AWS S3. You get 5GB for free for your first year and it's dirt cheap after that - and there is lots of documentation and support for S3 (see https://laravel.com/docs/5.6/filesystem).
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.
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.
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.
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 fairly new to web development and I have only published one website before. With that website I only used some PHP and without framework. Now, I'm planning on using the laravel framework for my next, bigger, website. I'm wondering if there are differences between publishing a website when using a PHP framework? If so, what are the major differences and where can I read about it (googling has not helped me)?
You have countless options. Here are some I am aware of:
1. FTP'ing
Basically, you could just publish your site/app by FTP'ing it up to your server. The biggest issue will be the Database-changes. Here, the main influence is, whether are you able to run migrations or not? You would at least have to have ssh-access to your server with the required prerequisites installed. Otherwise, you would need to keep track of the changes in some other way, and change the db manually (which is not an good option IMO).
2. Automated deployments
There are server-deployment automation-tools, the one i know is capistrano. You can write scripts which do the deployment. These tools are also capable of running migrations, if you tell them to do so, but you would need to have ssh-access for that. Google will tell you the rest, here is a good tutorial.
2.1. Push-to-deploy
If you use SCM for your "bigger project" (which i would highly recommend), you could use push-to deploy technologies. This approarch basically uses Git-Hooks for triggering deployment-scripts. Deeployer could take care of that for you, if you do not want to develop your push-to-deploy-solution from scratch. Other alternatives are Rocketeer (Open Source) or DeployHQ (Paid)
2.2. Using laravel-taylored hosting/deployment/server-management services
Services like laravel-forge or envoyer offer zero-downtime automated deployments. I guess they are also based on push to deploy anyway. If you want to learn more about them, i recommend watching the corresponding laracasts-series (Forge, Envoyer). Be aware that they are not free.
I hope this overview gets you started. Happy deploying!
There is no difference between publishing a plain PHP website and one with a framework. Simple FTP up all your files and it will work, just remember to upload the framework files also.