This software needs to be installed in your system before proceeding next step:
- Docker
- Docker Compose
- PHP 8.2
- MySQL 8.0
- Redis 7.2.4
tuupola/base62
: Url encodingfriendsofphp/php-cs-fixer
: PSR-12phpunit/phpunit
: Unit testing
Run these commands one by one from root directory to up and running this PHP project with docker compose with dummy data:
docker compose build --no-cache
docker compose up -d
docker compose exec application composer install
The PHP application will be up and running to this address: http://localhost:82/. You may visit that local address to test the PHP application from web interface.
docker compose exec application composer test
This PHP application is unitizing Layered Architecture
with MVC pattern
also tried to maintain SOLID
principles and Docker Compose
to run PHP application with MySQL, & Redis(Queue & Cache).
tree -L 2 ./src
├── app
│ ├── Controllers
│ ├── Jobs
│ ├── Models
│ ├── Repositories
│ └── Services
├── core
│ ├── App.php
│ ├── Cache.php
│ ├── Database
│ ├── Queue
│ ├── Request.php
│ ├── Router.php
│ ├── Session.php
│ ├── ValidationException.php
│ ├── Validator.php
│ ├── bootstrap.php
│ └── helpers.php
├── routes
│ └── web.php
└── views
├── links.view.php
└── partials