Skip to content

Commit 7b5d56f

Browse files
committed
Feature/Added Criteria package.
1 parent 9152a18 commit 7b5d56f

File tree

5 files changed

+41
-14
lines changed

5 files changed

+41
-14
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [ opened, synchronize, reopened ]
8+
types: [opened, synchronize, reopened]
99

1010
jobs:
1111
test:

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
composer.phar
22
/vendor/
33
.idea/
4-
/infrastructure/
5-
/coverage/
4+
/infrastructure
65
*[N|n]o[G|g]it*
7-
coverage.xml
8-
test.xml
6+
*coverage*
97
.phpunit.result.cache
108
composer.lock

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# Complex Heart SDK
1+
# Complex Heart PHP SDK
22

33
[![Test](https://github.com/ComplexHeart/php-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/ComplexHeart/php-sdk/actions/workflows/test.yml)
44

5-
Provide a set of useful classes and tools to ease the adoption of Domain-Driven Design into your PHP project.
5+
Provide a set of useful classes and tools to ease the adoption of Domain Driven
6+
Design into your project.
67

7-
* [Domain Model](https://github.com/ComplexHeart/php-domain-model)
8-
* [Criteria](https://github.com/ComplexHeart/php-criteria)
8+
- [Contracts](https://github.com/ComplexHeart/php-contracts): Commons interfaces
9+
to decouple some parts of the Domain.
10+
- [Data Model](https://github.com/ComplexHeart/php-domain-model): Aggregates,
11+
Entities and Value Objects.
12+
- [Criteria](https://github.com/ComplexHeart/php-criteria): Small implementation
13+
of a criteria pattern in PHP for Complex Heart SDK.

composer.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
22
"name": "complex-heart/sdk",
3-
"description": "Provide a set of useful classes and tools to ease the adoption of Domain-Driven Design into your PHP project.",
3+
"description": "Domain model toolset to properly build Value Objects, Entities, Aggregates and Services.",
44
"type": "library",
55
"license": "Apache-2.0",
66
"authors": [
77
{
88
"name": "Unay Santisteban",
9-
"email": "usantisteban@othercode.es"
9+
"email": "usantisteban@othercode.io"
1010
}
1111
],
12+
"minimum-stability": "stable",
1213
"require": {
13-
"complex-heart/contracts": "^0.1.0",
14-
"complex-heart/domain-model": "^1.0",
15-
"complex-heart/criteria": "^1.0"
14+
"php": "^8.0.0",
15+
"ext-json": "*",
16+
"complex-heart/contracts": "^2.0.0",
17+
"complex-heart/domain-model": "^3.0.0",
18+
"complex-heart/criteria": "^3.0.0"
1619
}
1720
}

phpunit.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
4+
colors="true"
5+
verbose="true"
6+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7+
<coverage processUncoveredFiles="true">
8+
<include>
9+
<directory suffix=".php">./src</directory>
10+
</include>
11+
<report>
12+
<clover outputFile="./coverage.xml"/>
13+
</report>
14+
</coverage>
15+
<testsuites>
16+
<testsuite name="unit">
17+
<directory suffix="Test.php">./tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
<logging/>
21+
</phpunit>

0 commit comments

Comments
 (0)