mikelooper / slim-infrastructure
用于创建微服务的包
0.0.25
2024-03-21 18:10 UTC
Requires
- php: ^8.3
- ext-amqp: *
- ext-pdo: *
- fig/http-message-util: ^1
- mikelooper/container-settings: ^0
- mikelooper/criteria: ^0
- mikelooper/ddd-cqrs: ^0
- mikelooper/persistence: ^0
- monolog/monolog: ^2
- nyholm/psr7: ^1
- nyholm/psr7-server: ^1
- selective/test-traits: ^4
- slim/slim: ^4
Requires (Dev)
- mikelooper/code-style: ^0
- phpunit/phpunit: ^10
- vimeo/psalm: ^5
- dev-main
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-dev
- dev-improvement/change-namespace-and-name-project
- dev-improvement/remove-docker-folder-and-use-php-development-container
This package is auto-updated.
Last update: 2024-09-25 16:20:26 UTC
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.