PHP code example of cockroach / swoole-boot

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

    

cockroach / swoole-boot example snippets


-- yourpath       微服务项目目录

  -- app              应用目录
     -- conf            配置               
     -- funcs           函数目录,支持子目录             
     -- logic           业务逻辑层            
     -- models          模型,数据访问层   
          
  -- framework        源码目录
     -- db                数据库驱动
     -- dispatcher        调度器
     -- route             路由
     -- server            服务
     -- Application.php   应用类
     -- Context.php       协程上下文
     -- Func.php          函数基类
     -- Error.php         错误与异常处理