├── .editorconfig ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── TODO.md ├── composer.json ├── composer.lock ├── phpunit.xml.dist ├── src └── Common │ ├── CommandLine │ └── functions.php │ ├── DomainModel │ ├── AggregateId.php │ ├── AggregateRoot.php │ └── RecordsDomainEvents.php │ ├── EventDispatcher │ ├── EventCliLogger.php │ └── EventDispatcher.php │ ├── EventSourcing │ ├── Aggregate │ │ ├── EventSourcedAggregate.php │ │ ├── EventSourcedAggregateCapabilities.php │ │ ├── Repository │ │ │ └── EventSourcedAggregateRepository.php │ │ └── Testing │ │ │ └── RecordedEventsEqual.php │ └── EventStore │ │ ├── AggregateNotFound.php │ │ ├── EventEnvelope.php │ │ ├── EventStore.php │ │ ├── Storage │ │ └── DatabaseStorageFacility.php │ │ └── StorageFacility.php │ ├── Persistence │ ├── Database.php │ ├── Filesystem.php │ ├── Id.php │ ├── IdentifiableObject.php │ ├── KeyValueStore.php │ └── Repository.php │ ├── Resilience │ └── functions.php │ ├── Stream │ ├── Consumer.php │ ├── Producer.php │ └── Stream.php │ ├── String │ └── Json.php │ └── Web │ ├── ControllerResolver.php │ ├── FlashMessage.php │ └── HttpApi.php ├── test ├── Integration │ └── Common │ │ ├── EventSourcing │ │ ├── DummyAggregateRoot.php │ │ ├── DummyCreated.php │ │ ├── DummyId.php │ │ ├── DummyRenamed.php │ │ └── EventSourcedAggregateRepositoryTest.php │ │ ├── Persistence │ │ ├── DBTest.php │ │ ├── DummyId.php │ │ ├── KeyValueStoreTest.php │ │ └── PersistableDummy.php │ │ ├── Stream │ │ ├── StreamTest.php │ │ ├── bootstrap.php │ │ ├── consume.php │ │ ├── consume_from_index_1.php │ │ ├── produce_foo_bar.php │ │ └── produce_hello_world.php │ │ ├── String │ │ └── JsonTest.php │ │ └── Web │ │ ├── FlashMessageTest.php │ │ └── HttpApiTest.php ├── Unit │ ├── DomainModel │ │ ├── AggregateIdTest.php │ │ ├── AggregateRootTest.php │ │ └── Fixtures │ │ │ ├── DummyAggregateId.php │ │ │ ├── DummyAggregateRoot.php │ │ │ └── DummyDomainEvent.php │ ├── EventDispatcher │ │ └── EventDispatcherTest.php │ └── Web │ │ ├── ControllerResolverTest.php │ │ └── Fixtures │ │ └── Application.php └── bootstrap.php └── var └── db └── .gitkeep /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | /var/* 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/README.md -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/TODO.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Common/CommandLine/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/CommandLine/functions.php -------------------------------------------------------------------------------- /src/Common/DomainModel/AggregateId.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/DomainModel/AggregateId.php -------------------------------------------------------------------------------- /src/Common/DomainModel/AggregateRoot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/DomainModel/AggregateRoot.php -------------------------------------------------------------------------------- /src/Common/DomainModel/RecordsDomainEvents.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/DomainModel/RecordsDomainEvents.php -------------------------------------------------------------------------------- /src/Common/EventDispatcher/EventCliLogger.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventDispatcher/EventCliLogger.php -------------------------------------------------------------------------------- /src/Common/EventDispatcher/EventDispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventDispatcher/EventDispatcher.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/Aggregate/EventSourcedAggregate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/Aggregate/EventSourcedAggregate.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/Aggregate/EventSourcedAggregateCapabilities.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/Aggregate/EventSourcedAggregateCapabilities.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/Aggregate/Repository/EventSourcedAggregateRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/Aggregate/Repository/EventSourcedAggregateRepository.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/Aggregate/Testing/RecordedEventsEqual.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/Aggregate/Testing/RecordedEventsEqual.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/EventStore/AggregateNotFound.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/EventStore/AggregateNotFound.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/EventStore/EventEnvelope.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/EventStore/EventEnvelope.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/EventStore/EventStore.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/EventStore/EventStore.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/EventStore/Storage/DatabaseStorageFacility.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/EventStore/Storage/DatabaseStorageFacility.php -------------------------------------------------------------------------------- /src/Common/EventSourcing/EventStore/StorageFacility.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/EventSourcing/EventStore/StorageFacility.php -------------------------------------------------------------------------------- /src/Common/Persistence/Database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/Database.php -------------------------------------------------------------------------------- /src/Common/Persistence/Filesystem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/Filesystem.php -------------------------------------------------------------------------------- /src/Common/Persistence/Id.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/Id.php -------------------------------------------------------------------------------- /src/Common/Persistence/IdentifiableObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/IdentifiableObject.php -------------------------------------------------------------------------------- /src/Common/Persistence/KeyValueStore.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/KeyValueStore.php -------------------------------------------------------------------------------- /src/Common/Persistence/Repository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Persistence/Repository.php -------------------------------------------------------------------------------- /src/Common/Resilience/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Resilience/functions.php -------------------------------------------------------------------------------- /src/Common/Stream/Consumer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Stream/Consumer.php -------------------------------------------------------------------------------- /src/Common/Stream/Producer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Stream/Producer.php -------------------------------------------------------------------------------- /src/Common/Stream/Stream.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Stream/Stream.php -------------------------------------------------------------------------------- /src/Common/String/Json.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/String/Json.php -------------------------------------------------------------------------------- /src/Common/Web/ControllerResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Web/ControllerResolver.php -------------------------------------------------------------------------------- /src/Common/Web/FlashMessage.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Web/FlashMessage.php -------------------------------------------------------------------------------- /src/Common/Web/HttpApi.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/src/Common/Web/HttpApi.php -------------------------------------------------------------------------------- /test/Integration/Common/EventSourcing/DummyAggregateRoot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/EventSourcing/DummyAggregateRoot.php -------------------------------------------------------------------------------- /test/Integration/Common/EventSourcing/DummyCreated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/EventSourcing/DummyCreated.php -------------------------------------------------------------------------------- /test/Integration/Common/EventSourcing/DummyId.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/EventSourcing/DummyId.php -------------------------------------------------------------------------------- /test/Integration/Common/EventSourcing/DummyRenamed.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/EventSourcing/DummyRenamed.php -------------------------------------------------------------------------------- /test/Integration/Common/EventSourcing/EventSourcedAggregateRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/EventSourcing/EventSourcedAggregateRepositoryTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Persistence/DBTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Persistence/DBTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Persistence/DummyId.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Persistence/DummyId.php -------------------------------------------------------------------------------- /test/Integration/Common/Persistence/KeyValueStoreTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Persistence/KeyValueStoreTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Persistence/PersistableDummy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Persistence/PersistableDummy.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/StreamTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/StreamTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/bootstrap.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/consume.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/consume.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/consume_from_index_1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/consume_from_index_1.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/produce_foo_bar.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/produce_foo_bar.php -------------------------------------------------------------------------------- /test/Integration/Common/Stream/produce_hello_world.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Stream/produce_hello_world.php -------------------------------------------------------------------------------- /test/Integration/Common/String/JsonTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/String/JsonTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Web/FlashMessageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Web/FlashMessageTest.php -------------------------------------------------------------------------------- /test/Integration/Common/Web/HttpApiTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Integration/Common/Web/HttpApiTest.php -------------------------------------------------------------------------------- /test/Unit/DomainModel/AggregateIdTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/DomainModel/AggregateIdTest.php -------------------------------------------------------------------------------- /test/Unit/DomainModel/AggregateRootTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/DomainModel/AggregateRootTest.php -------------------------------------------------------------------------------- /test/Unit/DomainModel/Fixtures/DummyAggregateId.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/DomainModel/Fixtures/DummyAggregateId.php -------------------------------------------------------------------------------- /test/Unit/DomainModel/Fixtures/DummyAggregateRoot.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/DomainModel/Fixtures/DummyAggregateRoot.php -------------------------------------------------------------------------------- /test/Unit/DomainModel/Fixtures/DummyDomainEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/DomainModel/Fixtures/DummyDomainEvent.php -------------------------------------------------------------------------------- /test/Unit/EventDispatcher/EventDispatcherTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/EventDispatcher/EventDispatcherTest.php -------------------------------------------------------------------------------- /test/Unit/Web/ControllerResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/Web/ControllerResolverTest.php -------------------------------------------------------------------------------- /test/Unit/Web/Fixtures/Application.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/Unit/Web/Fixtures/Application.php -------------------------------------------------------------------------------- /test/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/php-workshop-tools/HEAD/test/bootstrap.php -------------------------------------------------------------------------------- /var/db/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------