mikelooper / slim-infrastructure

用于创建微服务的包


README

该包创建用于管理简单微服务的创建。Slim php被包装进MicroserviceSlim,该包还控制缓存路由、记录错误并处理正确的响应。

配置

要使用该包,您需要配置容器依赖项。您可以复制以下文件来配置您的http微服务

  • config/container.php
  • config/settings.php
  • config/bootstrap.php // 该文件由index.php执行

制作命令

$ make help

Usage: make [target] ...

Tests:
  test                Execute tests
  test-coverage       Execute tests with coverage
                      
Miscellaneous:
  help                Show this help
                      
Container:
  run                 Build and run php container
  build               Build php container
  stop                Stop php container
  destroy             Remove all data related with php container
  shell               SSH in container
  logs                SSH logs in container
                      
Code:
  exec                Execute composer commands
                      
Style:
  lint                Show style errors
  lint-fix            Fix style errors
                      
Written by Antonio Miguel Morillo Chica, version v1.0
Please report any bug or error to the author.