{"id":20408976,"url":"https://github.com/dendrofen/docker-compose-php-apache-mail","last_synced_at":"2026-04-16T03:32:02.979Z","repository":{"id":126282956,"uuid":"581715694","full_name":"dendrofen/docker-compose-php-apache-mail","owner":"dendrofen","description":"Docker Compose development environment for php. Project folder storing files and mail testing tool available.","archived":false,"fork":false,"pushed_at":"2023-02-03T23:14:41.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T03:32:48.793Z","etag":null,"topics":["apache-docker","docker","docker-compose","docker-environment","docker-mail","mailhog-docker","php-docker","php-mailer-smtp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dendrofen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-24T03:50:11.000Z","updated_at":"2025-02-11T01:06:55.000Z","dependencies_parsed_at":"2023-06-16T03:15:24.182Z","dependency_job_id":null,"html_url":"https://github.com/dendrofen/docker-compose-php-apache-mail","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/dendrofen/docker-compose-php-apache-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dendrofen%2Fdocker-compose-php-apache-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dendrofen%2Fdocker-compose-php-apache-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dendrofen%2Fdocker-compose-php-apache-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dendrofen%2Fdocker-compose-php-apache-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dendrofen","download_url":"https://codeload.github.com/dendrofen/docker-compose-php-apache-mail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dendrofen%2Fdocker-compose-php-apache-mail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["apache-docker","docker","docker-compose","docker-environment","docker-mail","mailhog-docker","php-docker","php-mailer-smtp"],"created_at":"2024-11-15T05:38:36.734Z","updated_at":"2026-04-16T03:32:02.961Z","avatar_url":"https://github.com/dendrofen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![preview.jpg](readme/preview.jpg)\n\n# Docker Compose PHP Apache + Mailhog\n\nDocker Compose project to deploy development environment for PHP. Configured to store files changes locally in project folder matching the purpose of completely storing project in github. Additionally empowered with [Mailhog](https://github.com/mailhog/MailHog) - email testing tool.\n\n## Features\n\n- 📦 PHP Apache and Email Testing\n- 🗂️ File changes storing in project folder\n- 🚀 Commit changes to github repository\n\n**For development purpose only, don't use in production.**\n\n## 🚀 Getting Started\n\n### 1. Clone repository\n\n```bash\ngit clone https://github.com/dendrofen/docker-compose-php-apache-mail.git\n```\n\n### 2. Docker compose\n\nRun docker compose in cloned project folder\n\n```bash\ndocker-compose up -d\n```\n\n❗️ **Note:** Default docker compose is for Apple Silicon chips, form AMD use following:\n```bash\ndocker-compose -f docker-compose.amd.yml up -d\n```\n\n\n### 3. Start your changes\n\nOnce docker-compose run completed, you are free to make changes under www folder.\n\n## 🔗 Interface links\n\n- **Server**\n\n  - [http://localhost/](http://localhost/)\n\n- **Mailhog**\n  - [http://localhost:8025/](http://localhost:8025/)\n\n## 🧑🏻‍💻 PHP Environment\n\n### Project Structure\n\nFolder www contains files using on server, this should be considered as root server directory. All changes should be made under this directory.\n\n### Composer\n\nProject contains composer preinstalled with psr-4 autoload. Composer will build modules every docker container start, or you can do manage it manually using container console.\n\n### Mailer demo\n\nProject contains mailer demo fibric class, in **www/src/Mailer.php**. Mailer functional using [PHPMailer](https://github.com/PHPMailer/PHPMailer). Every index page reload there is new demo email send, code in **www/src/Home.php**.\n\n### Persisted www\n\nChanges per this directory would be synced with docker container as normally called - volume persistance. Your changes would be live-synced with docker container and visa-versa.\n\n### PHP settings\n\n**.docker/php.ini** file includes settings for php\n\n❗️ **Note:** Reload the container to see changes if modified\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdendrofen%2Fdocker-compose-php-apache-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdendrofen%2Fdocker-compose-php-apache-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdendrofen%2Fdocker-compose-php-apache-mail/lists"}