aprchen / easy-ms
miro-service
dev-master
2018-07-10 07:18 UTC
Requires
- doctrine/annotations: ^1.6
- league/fractal: ^0.17.0
- monolog/monolog: ^1.23
- symfony/filesystem: ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- phalcon/ide-stubs: ^3.3
- phpunit/phpunit: ^6
This package is not auto-updated.
Last update: 2025-03-12 13:21:59 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();