https://github.com/othercodes/hexagonal-architecture-example-in-php
Small example of Hexagonal Architecture.
https://github.com/othercodes/hexagonal-architecture-example-in-php
Last synced: over 1 year ago
JSON representation
Small example of Hexagonal Architecture.
- Host: GitHub
- URL: https://github.com/othercodes/hexagonal-architecture-example-in-php
- Owner: othercodes
- License: apache-2.0
- Created: 2024-05-14T10:53:20.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T01:14:20.000Z (about 2 years ago)
- Last Synced: 2024-05-23T02:28:24.256Z (about 2 years ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hexagonal Architecture Example in PHP
[](https://github.com/othercodes/hexagonal-architecture-example-in-php/actions/workflows/test.yml)
Code example for [Hexagonal Architecture](https://othercode.io/blog/hexagonal-architecture) article.
# Usage
First, install the dependencies and deploy the database schema.
```bash
composer install
composer db:initialize
```
Next, run the commands:
```bash
php bin/UserListController
php bin/UserCreateController "Vincent Vega"
```
## Testing
Running tests is quite easy, just execute the following command:
```bash
composer test
```