Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ composer.phar

### Git ###
*.orig

### PHPUnit ###
.phpunit.*
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build:
environment:
php:
version: 5.6
version: 8.0
tests:
override:
-
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ language: php
sudo: false

php:
- 5.6
- 7.0
- 7.1
- 8.0
- 8.1

env:
global:
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ Please feel free to create a new issue about any problem(s) you saw. We love pul

- Follow the PSR-1 and PSR-2 standards, **always**.
- Write a [good commit message](https://gist.github.com/matthewhudson/1475276).
- Write unit tests.
- Write unit tests.

Please use `develop` branch to send pull request. Don't send any pull request directly `master`.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
## DDD Embeddables
# DDD Embeddables

----

[![Build Status](https://secure.travis-ci.org/biberlabs/ddd-embeddables.svg?branch=master)](https://secure.travis-ci.org/biberlabs/ddd-embeddables)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/biberlabs/ddd-embeddables/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/biberlabs/ddd-embeddables/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/biberlabs/ddd-embeddables/badges/coverage.png?b=master&rand=123)](https://scrutinizer-ci.com/g/biberlabs/ddd-embeddables/?branch=master)

A collection of reusable value objects written in PHP and targeting versions 5.6 and above. Value objects are essential building blocks of **Domain Driven Design** approach and described by Martin Fowler in _P of EAA page 486_ as below:
A collection of reusable value objects written in PHP and targeting versions 8.0 and above. Value objects are essential building blocks of **Domain Driven Design** approach and described by Martin Fowler in _P of EAA page 486_ as below:

> "Value object is a small simple object, like money or a date range, whose equality isn't based on identity."

Expand Down Expand Up @@ -109,13 +111,14 @@ $ composer test
Please make sure that all test are green before creating a PR.

```
PHPUnit 5.1.6 by Sebastian Bergmann and contributors.
PHPUnit 9.5.25 #StandWithUkraine

........... 11 / 11 (100%)
................................................................. 65 / 75 ( 86%)
.......... 75 / 75 (100%)

Time: 269 ms, Memory: 7.25Mb
Time: 00:00.037, Memory: 6.00 MB

OK (39 tests, 71 assertions)
OK (75 tests, 124 assertions)
```

## Contributing
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "biberlabs/ddd-embeddables",
"description": "A collection of re-usable value objects ready to use as Embeddables in Doctrine",
"description": "A collection of re-usable value objects ready to use as Embeddable in Doctrine entities",
"type": "library",
"license": "MIT",
"require": {
"php": "^5.6 || ^7.0",
"doctrine/orm": "^2.5"
"php": "^8.0",
"doctrine/orm": "^2.11",
"composer-runtime-api": "^2"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
"phpunit/phpunit": "^9.5"
},
"suggest": {
"ext-gmp": "Calculate without integer limits",
Expand Down
Loading
Loading