https://github.com/shin1x1/independent-core-layer-pattern-fortee-demo
2019.11.30. 独立したコアレイヤパターンの適用 - fortee 編 -
https://github.com/shin1x1/independent-core-layer-pattern-fortee-demo
independent-core-layer-pattern php
Last synced: about 1 year ago
JSON representation
2019.11.30. 独立したコアレイヤパターンの適用 - fortee 編 -
- Host: GitHub
- URL: https://github.com/shin1x1/independent-core-layer-pattern-fortee-demo
- Owner: shin1x1
- Created: 2019-12-05T10:24:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T03:10:26.000Z (over 4 years ago)
- Last Synced: 2025-04-30T23:49:48.377Z (about 1 year ago)
- Topics: independent-core-layer-pattern, php
- Language: PHP
- Size: 27.3 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 独立したコアレイヤパターンの適用 - fortee 編 -
[](https://circleci.com/gh/shin1x1/independent-core-layer-pattern-fortee-demo)
* https://speakerdeck.com/shin1x1/fortee-meets-independent-core-layer-pattern
当日ライブコーディングで書いたコードです。before コードは作者の @tomzoh さんから許可を頂いて掲載しています。
```
before/ // リファクタリング前
after/ // リファクタリング後
Fortee/
Proposal/
Application/ // アプリケーションレイヤ
Core/ // コアレイヤ
```
## Usage
```
$ git clone this_repo
$ cd this_repo
$ docker run -it --rm -v `pwd`:/opt -w /opt composer install --ignore-platform-reqs
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 35 installs, 0 updates, 0 removals
(snip)
Writing lock file
Generating autoload files
$ docker run --rm -v `pwd`:/opt -w /opt php:7.4-cli-alpine ./vendor/bin/phpunit
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
.. 2 / 2 (100%)
Time: 307 ms, Memory: 4.00MB
OK (2 tests, 2 assertions)
```