PHP code example of micseres / micro-service-bundle

1. Go to this page and download the library: Download micseres/micro-service-bundle 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/ */

    

micseres / micro-service-bundle example snippets


return [
        \Micseres\MicroServiceBundle\MicroServiceBundle::class => ['all' => true],
];

    protected function execute(InputInterface $input, OutputInterface $output): void
    {
        $this->input  = $input;
        $this->output = $output;

        $this->microServiceReactor->setController([$this, 'generate']);
        $this->microServiceReactor->setLogger([$this, 'log']);

        $this->microServiceReactor->process();
    }