{"id":17120114,"url":"https://github.com/toomasr/php-template-app","last_synced_at":"2026-04-18T01:01:31.188Z","repository":{"id":142278392,"uuid":"125881551","full_name":"toomasr/php-template-app","owner":"toomasr","description":"PHP, NGINX, MySQL Docker Compose Example Template Project","archived":false,"fork":false,"pushed_at":"2018-12-08T09:20:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T21:43:39.297Z","etag":null,"topics":["docker","mysql","nginx","php7","template"],"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/toomasr.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":"2018-03-19T15:41:16.000Z","updated_at":"2018-12-08T09:20:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"175b0f04-595f-4b77-b46e-2a4223424da7","html_url":"https://github.com/toomasr/php-template-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toomasr/php-template-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toomasr%2Fphp-template-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toomasr%2Fphp-template-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toomasr%2Fphp-template-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toomasr%2Fphp-template-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toomasr","download_url":"https://codeload.github.com/toomasr/php-template-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toomasr%2Fphp-template-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","mysql","nginx","php7","template"],"created_at":"2024-10-14T17:58:56.506Z","updated_at":"2026-04-18T01:01:31.159Z","avatar_url":"https://github.com/toomasr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Template App\n\nAfter I needed a simple NGINX, PHP and MySQL Docker compose file I thought it is easier to put something up for quick reference for next time.\n\nThis is a great template to setup the boilerplate for a development environment. It is not complete but enough to get you started to try out some quick idea without actually installing anything on your system other than Docker.\n\nThis setup pulls in the NGINX, PHP and MySQL. The PHP image has the mysqli and pdo_mysql extensions enabled besides the default and are from my [PHP7 With Stuff](https://github.com/toomasr/php7-with-stuff) project.\n\nTo get this running just issue a `docker-compose up` in the folder. Then define the host `project.localhost` that points to 127.0.0.1 and voila, you will be presented with a **index.php** from `website/public_html/index.php` file.\n\n# Usage\n\nI just clone or download the repository and use it as a basis whenever I need to do some PHP prototyping (happens like once a year for me).\n\nIt runs everything on `project.localhost` URL so be sure to define that in your **hosts** file. If you want to tweak that then edit the **src/vhost.conf** file.\n\nEverything under **website/public_html** is meant to be the **root** for the web server. The **website/lib** is left out of the served three.\n\nThe app comes with a **index.php** which just displays the [phpinfo()](http://php.net/manual/en/function.phpinfo.php).\n\nMySql creates all its data under **db_data** folder. It also tries to load your dump files from **src/db** folder.\n\nMySQL is set up with the root password being **mysql_root_password**. Username **mysql_username**, password being **mysql_password** and the created database **database_name**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoomasr%2Fphp-template-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoomasr%2Fphp-template-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoomasr%2Fphp-template-app/lists"}