PHP code example of kakadu-dev / php-ijson-microservices

1. Go to this page and download the library: Download kakadu-dev/php-ijson-microservices 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/ */

    

kakadu-dev / php-ijson-microservices example snippets


use Kakadu\Microservices\Microservice;

$app = Microservice::create('my-microservice', [
    'ijson' => 'http://127.0.0.1:8001',
    'env'   => 'dev',
], true);

$app->start(function ($method, $params) {
    // Run method with params
    // Return result

    return ['hello' => 'world'];
});

composer 

"kakadu-dev/php-ijson-microservices": "@dev"