| Ratings |   | Unique User Downloads |   | Download Rankings | 
| Not yet rated by the users |  | Total: 111  |  | All time:  9,641 This week: 31  | 
 | 
| Description |   | Author  | 
This package provides an example implementation of a REST API. 
 
It provides classes to route API requests to service classes. 
 
This is the source code of my Udemy course, where I teach how to build a real-world RESTful API with PHP 8.2 from scratch.  |  | 
  | 
 | 
Innovation award
   Nominee: 18x
  Winner: 3x |  
 
 
  | 
Example
<?php 
namespace PH7\ApiSimpleMenu; 
 
use Whoops\Run as WhoopsRun; 
use Whoops\Handler\JsonResponseHandler as WhoopsJsonResponseHandler; 
 
require __DIR__ . '/vendor/autoload.php'; 
 
// handle all exceptions and convert them into JSON format 
$whoops = new WhoopsRun(); 
$whoops->pushHandler(new WhoopsJsonResponseHandler); 
$whoops->register(); 
 
 | 
 
Details
Build a PHP RESTful API
This is the source code of my Udemy course Build a Modern REST API with PHP 8.2 ?

The course
It is indispensable to enroll the Udemy course in order to understand and setup properly this project.
Quick Setup
- 
Composer & `composer install`
 
- 
Run the in-built PHP server `php -S localhost:8080`
 
Author
Pierre-Henry Soria. A super passionate and enthusiastic software engineer! ? Also, a true cheese ?, dark chocolate, and espresso lover! ??
License
This source code is distributed under the open-source MIT license.
 
 
|   | 
Applications that use this package | 
  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.