PHP code example of awurth / slim-rest-base

1. Go to this page and download the library: Download awurth/slim-rest-base 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/ */

    

awurth / slim-rest-base example snippets

 bash
$ sudo nano /config/services.dev.php
 php
$config['rest']['url'] = 'https://[your-url]';
 bash
$ php bin/console user:create
 bash
$ php bin/console routes