https://github.com/ishanvyas22/cakephp-app-skeleton
A skeleton for creating applications with CakePHP.
https://github.com/ishanvyas22/cakephp-app-skeleton
cakephp docker docker-compose mysql redis
Last synced: 3 months ago
JSON representation
A skeleton for creating applications with CakePHP.
- Host: GitHub
- URL: https://github.com/ishanvyas22/cakephp-app-skeleton
- Owner: ishanvyas22
- Created: 2022-10-28T12:03:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-09T01:00:05.000Z (over 1 year ago)
- Last Synced: 2025-06-13T23:34:22.146Z (about 1 year ago)
- Topics: cakephp, docker, docker-compose, mysql, redis
- Language: PHP
- Homepage:
- Size: 366 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CakePHP Application Skeleton
A skeleton for creating applications with [CakePHP](https://cakephp.org) & Docker.
## Features
- Traditional Nginx + PHP FPM combo to serve the application
- PHP version 8.1
- CakePHP version 4.4
- MariaDB v10.9 as database
- Redis v6.2 for superfast in-memory caching
- Helpful tools for ease of development
- Built for scalability in mind:
- Leverages `docker compose` to spin up & talk containers of each services
- All services are configured to write logs to stdout/stderr so it is easily configured to send logs to external services like New Relic, Logstash, ELK, etc.
## Requirements
- [Docker](https://docs.docker.com/get-docker/) v20 or newer
## Installation
Please note that these instructions are to run the app in **development environment** only.
```bash
git clone git@github.com:ishanvyas22/cakephp-app-skeleton.git my-cakephp-app
cd my-cakephp-app
docker compose up -d --remove-orphans
```
Then visit http://localhost:8765/ to see the landing page.
## Development
### Copy app config from docker container to host system
```bash
docker cp cakephp-app-skeleton-app:/var/www/config/app_local.php ./config/app_local.php
```
### Viewing logs
Use below command to watch application logs:
```bash
docker logs --follow
```
**Example:**
```bash
docker logs cakephp-app-skeleton-app --follow
```
### Code completion
You need to install composer dependencies in order to get code completion for your IDE:
```bash
docker run --rm --interactive --tty \
--volume $PWD:/app \
composer install --ignore-platform-reqs
```
### Require a new package via composer
```bash
docker run --rm --interactive --tty \
--volume $PWD:/app \
composer require / --ignore-platform-reqs
```