Skip to content

Commit 54ae159

Browse files
committed
Initial commit
0 parents  commit 54ae159

21 files changed

+5220
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 4
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 120
11+
tab_width = 4
12+
trim_trailing_whitespace = true
13+
14+
[{Dockerfile,Dockerfile.*}]
15+
indent_size = 2
16+
17+
[.github/**.yaml]
18+
indent_size = 2
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.phpunit.cache/
2+
/vendor/
3+
.php-cs-fixer.cache

.php-cs-fixer.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->exclude(['vendor'])
5+
->in(__DIR__)
6+
;
7+
8+
$config = new PhpCsFixer\Config();
9+
return $config
10+
->setRules([
11+
'@PSR12' => true,
12+
'strict_param' => true,
13+
'array_syntax' => ['syntax' => 'short'],
14+
])
15+
->setRiskyAllowed(true)
16+
->setFinder($finder);

CODEOWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# global owners
2+
* @b00gizm

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Geek Cell
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# PHP Domain Driven Design

composer.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "geekcell/ddd",
3+
"type": "library",
4+
"license": "MIT",
5+
"autoload": {
6+
"psr-4": {
7+
"GeekCell\\Ddd\\": "src/",
8+
"GeekCell\\Ddd\\Tests\\": "tests/"
9+
}
10+
},
11+
"authors": [
12+
{
13+
"name": "Pascal Cremer",
14+
"email": "[email protected]"
15+
}
16+
],
17+
"require": {
18+
"psr/event-dispatcher": "^1.0",
19+
"beberlei/assert": "^3.3"
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit": "^9.5",
23+
"friendsofphp/php-cs-fixer": "^3.13",
24+
"mockery/mockery": "^1.5",
25+
"phpstan/phpstan-mockery": "^1.1",
26+
"larapack/dd": "^1.1"
27+
},
28+
"scripts": {
29+
"gc:tests": "phpunit --testdox --colors=always",
30+
"gc:cs-lint": "php-cs-fixer fix --config .php-cs-fixer.php --diff -vvv --dry-run",
31+
"gc:cs-fix": "php-cs-fixer fix --config .php-cs-fixer.php -vvv || true"
32+
}
33+
}

0 commit comments

Comments
 (0)