mikelooper / slim-infrastructure
A package to create microservices
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-12-25 16:50:02 UTC
README
This package has been created to manage the creation of a simple microservice. Slim php was wrapped into MicroserviceSlim, also the package control the cache routes, log errors and handle the correct response.
Configuration
To use the package you need config the container dependence. You can copy the following files to config your http microservice:
- config/container.php
- config/settings.php
- config/bootstrap.php // File executed by index.php
Make commands
$ 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.