How to Create REST API with PHP in 5 Minutes

apiplug_php_laravelIn this tutorial we are going to explain how to create a RESTful API with PHP Laravel framework which is connected to a MySQL or MongoDB in 5 minutes. After this tutorial you will be able to generate and download full source code of your own API also if you like you could deploy to your cloud server with a few clicks too.

You don’t have to write single line of code for this tutorial, you will be auto-generating and downloading all necessary backend source code with API Plug‘s web interface.

Read more How to Create REST API with PHP in 5 Minutes

Laravel5.2 + PHP 7 API Deployment Tutorial

apiplug_php_laravelAPI Plug allows you to create Laravel 5.2 and PHP7 API’s with a few click, now it is time to test it on your server.

 

Here is the tutorial for deploying your Laravel 5.2 and PHP7 API to your server.

TL;DR

Fast forward version

  • copy files to web server
  • adjust db credentials if needed
  • enjoy

  • We don't support MongoDB with PHP7 at the moment. We're working on the subject.

Read more Laravel5.2 + PHP 7 API Deployment Tutorial