PHP framework for simple CRUD API and authentication [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a PHP framework for a simple CRUD API that will need some authentication.
The sole purpose of this app is to be highly scalable.
The php API will be very simple CRUD Rest with mostly writes. This API will be used only in a iphone application where the iPhone App is sending user data every couple of milliseconds/seconds.
The way i see it
Load Balancer -> PHP Framework (Horizontally Scalable) -> RabbitMQ Cluster -> Some Java Servers talking tp Hadoop/Cassandra -> Hadoop/Cassandra Cluster
So the Load balancer will pick which app server to send the data. PHP will get the data via a POST, do some authentication work..Maybe some validation, and then send the data/message to RabbitMQ, which will then talk to some Java server to do reads and writes. There may be Cache server in there too somewhere.
So i just need a simple PHP framework that Can do Rest/CRUD, simple authentication. probably a token in the post request and then can talk to a RabbitMQ server.
The PHP framework should probably be light. I have used Laravel in the past and i know it has a queue implementation, but i think it may be too slow for this.
Any suggestions?

With those requirements I suggest you to use a microframework because of the lightweight. I have running a project with Slim microframework with good accomplishments. There are many in the market so I let you choose.
Look at:
http://xybu.me/a-comparison-of-php-micro-frameworks/

Related

use built-in laravel 5.3 features or dingo to create APIs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm really new in API developing but I developed many websites before using Laravel.(and PHP)
Now I want to create my first API that can respond to any kind of clients like Android , iOS or an Angular powered Application.
I've done a lot of research in this case that How can I make an API via laravel.
I found that there is a package named dingo/api that simplifies and provide requirements to create flexible APIs.
And in the other hand, in last version of Laravel (5.3) added new features that help to create APIs like Passport.
But I am confused and do not know which are best approach.
Whether the use of Laravel in this case alone is enough? or will I surely need Dingo?
That really depends on what are you looking to achieve, if you want a versioned api rest with pagination and all the features normally an API has, then for me the best approach is to use dingo api, but if you want to provide data in JSON from a website already created, just return the entities in the actions of the controller and laravel itself will return them encoded to json, is a matter of your own choice, now, you can always use a generator like this: https://github.com/InfyOmLabs/laravel-generator to generate the whole scaffolding, and that's include a REST API with documentation too. And in the security layer, you can use an OAuth server with laravel passport, or can use JWT Auth using this package https://packagist.org/packages/tymon/jwt-auth, the configuration and usage is pretty easy. What I want to say, is a matter of choice, just that.

REST-Centric web dashboard in PHP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm planning to build a REST-Centric web dashboard in PHP. Without connecting to the databases directly. All data 100% comes in and goes out through REST calls alone. I've gone through few framework for writing API like slim, silex, Wave and Lumen, gonna pick one form this (for Azure & MSSQL), My concern is whether developing the Dashboard in Angular or some other js & pure HTML will have any security issue or is it safe to go with Server-side scripts for dashboard too?
Interesting question, I'm doing research for a similar project and this is what I have so far:
All the opensource out there don't fill 100% the needs I have for the project so I can't use them (ie: not mobile ready or not tv ready or poor browser support)
Because of the above, I will need to build a custom solution:
server side: Lumen framework for the log in and for securing+processing all the dashboard requests
client side: I will use a angular.js + dashboard template (from envato or from strapui). You can also do it with jQuery.
I hope it helps

Packages/libraries to build a Laravel 5 REST API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm going to build a back-end API REST using Laravel 5 for an iOS application (perhaps for Android in the future) so I found a couple of packages on github for the API authentication:
https://github.com/chrisbjr/api-guard
https://github.com/lucadegasperi/oauth2-server-laravel
And I want to know what's the different between them and what package could be the good choice for my API and of course If you have some advices or another packages to use, will be perfect.
Kind regards.
The oAuth2 server package follows rfc6749 and will help you have an Auth server like fb. (please see the link I provided for more information)
You may use a second app for it to separate your servers. (Auth server - resource server)
I never used api-guard but as it says in read me, It will provide a basic api key protection.
If you are planning to share your api with third party apps with user permission, I advice you to follow the oAuth2 path.
But if you are planning to use it in your app only, you definitely need api key only. Don't spend time for oAuth2 configurations.

What sort of server to use for a scalable PHP project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I just started a project in a company, they had it hosted on Google App Engine and the app was developed in Java. The thing is that this code was totally unreadable. So I've came to the conclusion that the best solution would be start it all over.
Because it is a Facebook App, one approach would be to stop using Java and start using their available PHP SDK. But, Google App Engine still doesn't work well with PHP, we can't install Frameworks like Yii without workarounds, etc.
So I think the best solution would be change the place that we are hosting the application. It needs to be a host for scalable PHP applications.
I've researched a little bit and found people talking about Pagoda and appfog.
Do you have any suggestions? What is the best solution considering: price, efficiency and also it needs to be easy to use. I don't have a lot of experiences managing servers, I usually have someone on the company that takes care of all of that for me.
My best advice would be to choose a standard Cloud provider like DigitalOcean, VPS.net or AWS. You get full access to the server to configure and install anything you like, and they often come with pre-built server images with PHP/MySQL/Apache already configured and ready to use.
Heroku has PHP support to https://devcenter.heroku.com/articles/getting-started-with-php and it's ideal for FB apps https://devcenter.heroku.com/articles/facebook

Receive Email using PHP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Does PHP have any classes to receive email? Do you know of any good resources about this?
Try php-imap library. It's very popular and stable.
I had this question too and I wanted to get emails in real time so I worked out my own solution with google app engine. I basically made a small dedicated google app engine app to receive and POST emails to my main site.
You can check out Emailization (a little weekend project I did to do it for you), or you this small GAE app that should do the trick.
I kinda explained it more on another question.
Hope that helps!
If you want to receive e-mail in real-time(COOL? but have to use .appspot domain. You could off course also forward it to the .appspot domain) I would advise you to have a look at google app engine which is free to use(generous quota). You could forward the email it your webserver using asynchronous request which in turn let's you do all the cool stuf you would like it to do in PHP.
Python is pretty easy to learn especially after watching this video from Brett Slatkin explaining how to "Developing and deploying an application on Google App Engine" and the snippets in the google app engine documentation should get you started in no time.

Categories