aprchen/easy-ms

miro-service

dev-master 2018-07-10 07:18 UTC

This package is not auto-updated.

Last update: 2022-06-21 23:56:25 UTC


README

使用 phalcon Micro 搭建 restful api

使用方法

composer require aprchen/easy-ms

入口文件示例

define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/app');
require_once BASE_PATH . '/vendor/autoload.php';
$app = new MicroApp();
$app->setConfigPath(BASE_PATH."/config.ini");
$app->setBoots(
    new CollectionBootstrap(),
    new ServiceBootstrap()
);
$app->handle();