apip-ddd
An example of hexagonal API Platform 3 implementation
File Explorer
Download Latest Version (.zip)- main.yaml
- console
- phpunit
- api_platform.php
- debug.php
- doctrine.php
- framework.php
- messenger.php
- monolog.php
- nelmio_cors.php
- routing.php
- security.php
- twig.php
- validator.php
- web_profiler.php
- api_platform.php
- framework.php
- web_profiler.php
- book_store.php
- book_store.php
- shared.php
- subscription.php
- bundles.php
- preload.php
- Caddyfile
- symfony.dev.ini
- symfony.prod.ini
- zz-docker.conf
- docker-entrypoint.sh
- docker-healthcheck.sh
- .gitignore
- index.php
- AnonymizeBooksCommand.php
- AnonymizeBooksCommandHandler.php
- CreateBookCommand.php
- CreateBookCommandHandler.php
- DeleteBookCommand.php
- DeleteBookCommandHandler.php
- DiscountBookCommand.php
- DiscountBookCommandHandler.php
- UpdateBookCommand.php
- UpdateBookCommandHandler.php
- FindBookQuery.php
- FindBookQueryHandler.php
- FindBooksQuery.php
- FindBooksQueryHandler.php
- FindCheapestBooksQuery.php
- FindCheapestBooksQueryHandler.php
- MissingBookException.php
- Book.php
- BookRepositoryInterface.php
- Author.php
- BookContent.php
- BookDescription.php
- BookId.php
- BookName.php
- Discount.php
- Price.php
- AuthorFilter.php
- DiscountBookPayload.php
- BookResource.php
- AnonymizeBooksProcessor.php
- CreateBookProcessor.php
- DeleteBookProcessor.php
- DiscountBookProcessor.php
- UpdateBookProcessor.php
- BookCollectionProvider.php
- BookItemProvider.php
- CheapestBooksProvider.php
- DoctrineBookRepository.php
- InMemoryBookRepository.php
- AsCommandHandler.php
- CommandBusInterface.php
- CommandInterface.php
- AsQueryHandler.php
- QueryBusInterface.php
- QueryInterface.php
- PaginatorInterface.php
- RepositoryInterface.php
- AggregateRootId.php
- Paginator.php
- DoctrinePaginator.php
- DoctrineRepository.php
- InMemoryPaginator.php
- InMemoryRepository.php
- MessengerCommandBus.php
- MessengerQueryBus.php
- Kernel.php
- Subscription.php
- base.html.twig
- AnonymizeBooksTest.php
- BookCrudTest.php
- CheapestBooksTest.php
- DiscountBookTest.php
- DummyBookFactory.php
- AnonymizeBooksTest.php
- CreateBookTest.php
- DeleteBookTest.php
- DiscountBookTest.php
- FindBooksTest.php
- FindBookTest.php
- FindCheapestBooksTest.php
- UpdateBookTest.php
- DoctrineBookRepositoryTest.php
- InMemoryBookRepositoryTest.php
- DoctrinePaginatorTest.php
- InMemoryPaginatorTest.php
- SubscriptionCrudTest.php
- DummySubscriptionFactory.php
- bootstrap.php
- .dockerignore
- .editorconfig
- .env
- .env.test
- .gitattributes
- .gitignore
- .php-cs-fixer.dist.php
- composer.json
- composer.lock
- deptrac_bc.yaml
- deptrac_hexa.yaml
- docker-compose.override.yml
- docker-compose.prod.yml
- docker-compose.yml
- Dockerfile
- LICENSE
- Makefile
- phpunit.xml.dist
- psalm.xml
- README.md
- symfony.lock
# Installation Guide
1. Get the code
git clone https://github.com/mtarld/apip-ddd
Downloads the entire project code from GitHub to your computer.
cd apip-ddd
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f docker-compose.override.yml up -d --build
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. PHP (Composer)
EasyPrerequisites
composer install
Installs the PHP libraries listed in composer.json.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
