Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framework to write PHP web service

Is there a specific framework out there for PHP to write a REST web service and expose it to JSON?

Or you just basically code it...

I am writing a REST web service, mostly to communicate with a database in MySQL, authentication, etc...

What advantages is there with a framework? Is it more secure?

like image 602
aherlambang Avatar asked Feb 24 '11 18:02

aherlambang


People also ask

What is the best framework to build a PHP web application?

CodeIgniter is the top choice for a beginner-friendly PHP framework that is easy to use and quick to learn. It works on the MVC architecture, is easy to install, offers several guides and is easy to understand for beginners to get started with developing web applications on PHP.

What framework does PHP use?

The Zend Framework Because of their massive following, extensive support and active user base, Zend is referred to as “The PHP Company”. Zend is one of, if not, the most popular PHP frameworks available today.

Is PHP GOOD FOR REST API?

Since PHP can obviously handle HTTP requests, it has everything you need to build RESTful API's. The whole point of frameworks is to handle common tasks and things that are otherwise tedious. REST API's are commonly built with PHP, so a plethora of frameworks exist.

Which PHP framework is specifically created for building REST web services?

PHP REST API: Lumen Lumen is a micro-API framework made out of Laravel. Specially designed for building REST APIs, this framework cuts off all Laravel features that restrict stateless APIs.


1 Answers

Have a look at Frapi. Here is the documentation for it.

As for the reasoning, similar to a normal PHP framework.

  • Documentation
  • Support
  • Community
  • Multiple devs contributing
  • Not re-inventing the wheel

etc etc

like image 152
Stoosh Avatar answered Oct 02 '22 19:10

Stoosh