{"id":13825888,"url":"https://github.com/codeliner/php-ddd-cargo-sample","last_synced_at":"2025-04-04T10:08:01.661Z","repository":{"id":11991132,"uuid":"14567403","full_name":"codeliner/php-ddd-cargo-sample","owner":"codeliner","description":"PHP 7 Version of the cargo sample used in Eric Evans DDD book","archived":false,"fork":false,"pushed_at":"2018-11-06T22:31:30.000Z","size":69852,"stargazers_count":796,"open_issues_count":0,"forks_count":151,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-10-10T10:11:25.158Z","etag":null,"topics":["cargo-sample","ddd","ddd-sample","eric-evans-book","php"],"latest_commit_sha":null,"homepage":"http://codeliner.github.io/php-ddd-cargo-sample/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeliner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-20T19:56:17.000Z","updated_at":"2024-05-15T11:27:16.000Z","dependencies_parsed_at":"2022-09-23T03:32:57.692Z","dependency_job_id":null,"html_url":"https://github.com/codeliner/php-ddd-cargo-sample","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeliner%2Fphp-ddd-cargo-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeliner%2Fphp-ddd-cargo-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeliner%2Fphp-ddd-cargo-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeliner%2Fphp-ddd-cargo-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeliner","download_url":"https://codeload.github.com/codeliner/php-ddd-cargo-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157282,"owners_count":20893220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo-sample","ddd","ddd-sample","eric-evans-book","php"],"created_at":"2024-08-04T09:01:28.649Z","updated_at":"2025-04-04T10:08:01.641Z","avatar_url":"https://github.com/codeliner.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Sample Projects"],"sub_categories":["PHP"],"readme":"# PHP DDD Cargo Sample\n\nPHP 7 port of the cargo sample used in Eric Evans Domain-Driven Design book\n\n[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/codeliner/php-ddd-cargo-sample/badges/quality-score.png?s=d68042d97e40904ec369e137b60a1076509298f8)](https://scrutinizer-ci.com/g/codeliner/php-ddd-cargo-sample/)\n[![Build Status](https://travis-ci.org/codeliner/php-ddd-cargo-sample.png?branch=master)](https://travis-ci.org/codeliner/php-ddd-cargo-sample)\n\n## Cargo Sample Reloaded\n\nAfter two years of inactivity a new version of the PHP DDD Cargo Sample is available [2015/12/07].\nThe new version is a complete rewrite of the cargo sample using cutting edge technology.\n\n### tl;dr\nClick [here](https://github.com/codeliner/php-ddd-cargo-sample/pull/22#issuecomment-162734730) :smile:\n\n### What Is New?\n\n- [x] PHP 7 with strict scalar type hints\n- [x] PSR-7 \u0026 PSR-15 middleware layer using [zend-expressive](https://github.com/zendframework/zend-expressive)\n- [x] Doctrine ORM ^2.5 [Embeddables](http://doctrine-orm.readthedocs.org/projects/doctrine-orm/en/latest/tutorials/embeddables.html)\n- [x] PHPUnit ^5.0\n- [x] Behat ^3.0\n- [x] Single Page UI using [riot.js](http://riotjs.com/)\n\n## Goal of the Project\n\nWe want to show the PHP 7 way of implementing Domain-Driven Design with the help of\nthe original Cargo sample used in Eric Evans book\n`Domain-Driven Design: Tackling Complexity in the Heart of Software`.\nThis has also been done using Java, C#, Ruby and other programming languages.\n\nIt is not the one way to apply DDD and only covers the tactical part of DDD.\nHowever, the cargo sample should help you understand the theory\nand gives you a starting point. Also see the [Caveats](http://dddsample.sourceforge.net/) of the\njava implementation. The same applies for our version.\n\n## Installation\n* [Standalone](https://github.com/codeliner/php-ddd-cargo-sample/blob/master/docs/installation.md)\n* [Dockerized](https://github.com/codeliner/php-ddd-cargo-sample/blob/master/docs/installation-docker.md)\n\n## Structure\nThe [annotated project overview](https://github.com/codeliner/php-ddd-cargo-sample/blob/master/docs/structure.md)\ngives you an idea of the system structure.\n\n## PHP 5.6 compatible Version\nLooking for a PHP 5.6 compatible version of the cargo sample? [@josecelano](https://github.com/josecelano) has downgraded his fork.\nYou can find it [here](https://github.com/josecelano/php-ddd-cargo-sample).\n\n## Support\nIf you have any problems with the application please open a [GitHub issue](https://github.com/codeliner/php-ddd-cargo-sample/issues?state=open).\nSame applies if you have a question or a feature wish.\n\n## Contributing\nContributions of any kind are welcome. The PHP 7 DDD cargo sample aims to help people understand the tactical design part of DDD.\nSo we'd be very happy if you tell your friends about it, link it in discussions and mention it on twitter.\nIf you've found a bug or have an idea for an improvement, just submit a PR like usual.\n\n## Behavior Driven Design\nAll features of the application are described in feature files. You can find them in\nthe [features folder](https://github.com/codeliner/php-ddd-cargo-sample/tree/master/features) of the project.\nWe make use of [Behat](http://behat.org/) and [Mink](http://mink.behat.org/) to test our\nbusiness expectations.\n\nYou can run the feature tests by navigating to the project root and start the selenium server shipped with the sample app:\n`java -jar selenium-server-standalone-2.46.0.jar`\nAfter the server started successfully open another console, navigate to project root again and run Behat with the command `php bin/behat`.\n\n*Note: If it does not work, check that the behat file is executable.\n\n## Unit Tests\nUnit Tests are of course also available. You can find them in [CargoBackend/tests](https://github.com/codeliner/php-ddd-cargo-sample/tree/master/CargoBackend/tests).\nGot to the directory and simply run `phpunit`.\n\n## Sponsoring\n[![prooph software](https://github.com/codeliner/php-ddd-cargo-sample/blob/master/docs/assets/prooph-software-logo.png)](http://prooph.de)\n\nThis brand new cargo sample version is sponsored by prooph software GmbH. You can follow us on [twitter](https://twitter.com/prooph_software)\n\n## Become A Member\nIf you want to share your experience with other DDD enthusiasts or want to ask a question about DDD then the [DDDinPHP google group](https://groups.google.com/forum/#!forum/dddinphp) is good place to do so.\n\nYou can find more DDD stuff like interesting articles and related libraries on the [PhpFriendsOfDdd/state-of-the-union](https://github.com/PhpFriendsOfDdd/state-of-the-union) project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeliner%2Fphp-ddd-cargo-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeliner%2Fphp-ddd-cargo-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeliner%2Fphp-ddd-cargo-sample/lists"}