PHP code example of alexdevid / rest-server

1. Go to this page and download the library: Download alexdevid/rest-server library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alexdevid / rest-server example snippets




$server = new Alexdevid\RestServer
$server->run();

public function get();
public function post();
public function put();
public function delete();