PHP code example of media24si / api-resource

1. Go to this page and download the library: Download media24si/api-resource 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/ */

    

media24si / api-resource example snippets

 php
Media24si\ApiResource\ApiResourceServiceProvider::class,
 bash
$ php artisan vendor:publish
 php
'Api' => Media24si\ApiResource\Facades\ApiResource::class
 php
$app->register(Media24si\ApiResource\ApiResourceServiceProvider::class);
 php
$app->configure('apiresource');
 php
class_alias(Media24si\ApiResource\Facades\ApiResource::class, 'Api');
 php
$app->withFacades();
 php
'defaults' => [
	'base_uri' => 'http://httpbin.org/']
]

#### endpoints
Array of defined endpoints. Here you can define your aliases for endpoints.

Sample array: