PHP code example of lighthorse-consulting / tao

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

    

lighthorse-consulting / tao example snippets


Tao\Service::init([
    'example' => function ($action) {
        // action logic here
        return $action;
    }
])->run();

return Tao\Action::init($action)->entity(['text' => 'Hello World'])->run();

return Tao\Action::init($action)->entity('do_something')->run();