{"id":20081552,"url":"https://github.com/mixerapi/app","last_synced_at":"2026-05-02T23:44:08.211Z","repository":{"id":40796227,"uuid":"354997805","full_name":"mixerapi/app","owner":"mixerapi","description":"A mixerapi/mixerapi application template for Docker Compose and Kubernetes based on the official cakephp/app 4.2 template.","archived":false,"fork":false,"pushed_at":"2022-09-30T00:05:13.000Z","size":376,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T13:50:22.419Z","etag":null,"topics":["cakephp","docker","docker-compose"],"latest_commit_sha":null,"homepage":"https://mixerapi.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixerapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-05T23:15:14.000Z","updated_at":"2023-07-05T09:25:19.000Z","dependencies_parsed_at":"2023-01-18T10:05:09.367Z","dependency_job_id":null,"html_url":"https://github.com/mixerapi/app","commit_stats":null,"previous_names":[],"tags_count":7,"template":true,"template_full_name":"cnizzardini/cakephp-docker","purl":"pkg:github/mixerapi/app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixerapi","download_url":"https://codeload.github.com/mixerapi/app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274146240,"owners_count":25230115,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cakephp","docker","docker-compose"],"created_at":"2024-11-13T15:39:26.767Z","updated_at":"2026-05-02T23:44:03.173Z","avatar_url":"https://github.com/mixerapi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MixerAPI App\n\n[![Build](https://github.com/mixerapi/app/actions/workflows/build.yml/badge.svg)](https://github.com/mixerapi/app/actions/workflows/build.yml)\n[![MixerApi](https://mixerapi.com/assets/img/mixer-api-red.svg)](http://mixerapi.com)\n[![CakePHP](https://img.shields.io/badge/cakephp-4.2-red?logo=cakephp)](https://book.cakephp.org/4/en/index.html)\n[![Docker](https://img.shields.io/badge/docker-ffffff.svg?logo=docker)](.docker)\n[![Kubernetes](https://img.shields.io/badge/kubernetes-D3D3D3.svg?logo=kubernetes)](.kube)\n[![PHP](https://img.shields.io/badge/php-8.1-8892BF.svg?logo=php)](https://hub.docker.com/_/php)\n[![NGINX](https://img.shields.io/badge/nginx-1.19-009639.svg?logo=nginx)](https://hub.docker.com/_/nginx)\n[![MySQL](https://img.shields.io/badge/mysql-8-00758F.svg?logo=mysql)](https://hub.docker.com/_/mysql)\n\nA [mixerapi/mixerapi](https://github.com/mixerapi/mixerapi) application template for Docker Compose and Kubernetes\nbased on the official [cakephp/app 4.4](https://github.com/cakephp/app) template.\n\nThis project has been forked from [cnizzardini/cakephp-docker](https://github.com/cnizzardini/cakephp-docker).\n\n#### Dependencies:\n\n- [Docker 20](https://docs.docker.com/engine/release-notes/) or higher\n- Make\n\n| Service                | Host:Port      | Docker Host | Image                                                                                        |\n|------------------------|----------------|-------------|----------------------------------------------------------------------------------------------|\n| PHP8.1-FPM w/ Xdebug 3 | -              | php         | [cnizzardini/php-fpm-alpine:8.1-latest](https://hub.docker.com/r/cnizzardini/php-fpm-alpine) |\n| NGINX 1.19             | localhost:8080 | web         | [nginx:1.19-alpine](https://hub.docker.com/_/nginx)                                          |\n| MySQL 8                | localhost:3607 | db          | [library/mysql:8](https://hub.docker.com/_/mysql)                                            |\n\n\n- [Installation](#installation)\n- [MacOS Notes](#mac-notes)\n- [Usage](#usage)\n  - [PHP](#php)\n  - [MySQL](#mysql)\n  - [NGINX](#nginx)\n  - [Xdebug](#xdebug)\n- [Reinstall](#reinstall)\n\n## Installation\n\nFork and clone this repository then run:\n\n```console\nmake init\n```\n\nThat's it! Now just remove `app/*` from [.gitignore](.gitignore). You may also want to remove\n[.assets](.assets) and adjust defaults in [.github](.github), [.docker](.docker), and [.kube](.kube).\n\n\u003e Note: `make init` and `make init.nocache` output interactively, while `make start` and `make up` do not.\n\n## Mac Notes\n\n1. Change your `SHELL` in the Makefile to `/bin/zsh`. This improves various output from the Makefile such as emoji's.\n\n3. Mac ships with an older version of `sed` so install `gnu-sed` for some targets in the Makefile:\n\n```console\nbrew install gnu-sed\n```\n\nThen update `sed` to `gsed` in the Makefile.\n\n## Usage\n\nAfter install browse to [http://localhost:8080](http://localhost:8080) to see the CakePHP welcome page.\n\nA [Makefile](Makefile) is provided with some optional commands for your convenience. Please review the Makefile as\nthese commands are not exact aliases of docker-compose commands.\n\n| Make Command            | Description                                                                             |\n|-------------------------|-----------------------------------------------------------------------------------------|\n| `make`                  | Shows all make target commands                                                          |\n| `make init`             | Runs docker build, docker-compose up, and copies over env files                         |\n| `make init.nocache`     | Same as make.init but builds with --no-cache                                            |\n| `make start`            | Starts services `docker-compose -f .docker/docker-compose.yml start`                    |\n| `make stop`             | Stops services `docker-compose -f .docker/docker-compose.yml stop`                      |\n| `make up`               | Create and start containers `docker-compose -f .docker/docker-compose.yml up -d`        |\n| `make down`             | Take down and remove all containers `docker-compose -f .docker/docker-compose.yml down` |\n| `make restart`          | Restarts services `docker-compose -f .docker/docker-compose.yml restart`                |\n| `make php.sh`           | PHP terminal `docker exec -it --user cakephp \u003cPHP_CONTAINER\u003e sh`                        |\n| `make php.restart`      | Restarts the PHP container                                                              |\n| `make db.sh`            | DB terminal `docker exec -it \u003cDB_CONTAINER\u003e sh`                                         |\n| `make db.mysql`         | MySQL terminal `mysql -u root -h 0.0.0.0 -p --port 3307`                                |\n| `make web.sh`           | Web terminal `docker exec -it \u003cWEB_CONTAINER\u003e sh`                                       |\n| `make xdebug.on`        | Restarts PHP container with xdebug.mode set to debug,coverage                           |\n| `make xdebug.off`       | Restarts PHP container with xdebug.mode set to off                                      |\n| `make composer.install` | `docker exec \u003cPHP_CONTAINER\u003e composer install --no-interaction`                         |\n| `make composer.test`    | `docker exec \u003cPHP_CONTAINER\u003e composer test`                                             |\n| `make composer.check`   | `docker exec \u003cPHP_CONTAINER\u003e composer check`                                            |\n\n### PHP\n\nSee [.docker/README.md](.docker/README.md) for details.\n\nShell:\n\n```console\nmake php.sh\n```\n\nHelper commands:\n\n```console\nmake composer.install\nmake composer.test\nmake composer.check\n```\n\n### MySQL\n\nSee [.docker/README.md](.docker/README.md) for details.\n\nShell:\n\n```console\nmake db.sh\n```\n\nMySQL shell (requires mysql client on your localhost):\n\n```console\nmake db.mysql\n```\n\n### NGINX\n\nSee [.docker/README.md](.docker/README.md) for details.\n\nShell:\n\n```console\nmake web.sh\n```\n\n### Xdebug\n\nXdebug is disabled by default. To toggle:\n\n```console\nmake xdebug.on\nmake xdebug.off\n```\n\n### PHPStorm + Xdebug\n\nXdebug 3's default port is `9003`.\n\nGo to `File \u003e Settings \u003e Languages \u0026 Frameworks \u003e PHP \u003e Servers`\n\n- Name: `localhost`\n- Host: `localhost`\n- Port: `8080`\n- Debugger: `Xdebug`\n- Use path mappings: `Enable`\n\nMap your project's app directory to the absolute path on the docker container `/srv/app`\n\n## Reinstall\n\nTo completely reinstall delete existing containers and images, then remove the `app/` directory and run `make init`\nagain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixerapi%2Fapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixerapi%2Fapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixerapi%2Fapp/lists"}