PHP code example of takemo101 / chubby

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

    

takemo101 / chubby example snippets




// index.php

use Psr\Http\Message\ResponseInterface;
use Takemo101\Chubby\Http;

terface $response, string $id) {
        $response->getBody()->write("ID = {$id}");

        return $response;
    },
);

$http->run();

#!/usr/bin/env php


// console

use Symfony\Component\Console\Output\OutputInterface;
use Takemo101\Chubby\Console\Command\ClosureCommand;
use Takemo101\Chubby\Console;

);

            return ClosureCommand::SUCCESS;
        },
    )->setName('hello'),
);

$console->run();