{"id":22356523,"url":"https://github.com/vsaint1/php-anywhere-docker","last_synced_at":"2025-03-26T13:15:29.413Z","repository":{"id":236856861,"uuid":"793290449","full_name":"vsaint1/php-anywhere-docker","owner":"vsaint1","description":"Run php dockerized on any OS, dev or production environment.","archived":false,"fork":false,"pushed_at":"2024-04-29T01:40:47.000Z","size":151,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T14:32:02.435Z","etag":null,"topics":[],"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/vsaint1.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":"2024-04-28T23:32:32.000Z","updated_at":"2024-04-30T12:33:06.000Z","dependencies_parsed_at":"2024-12-04T14:11:05.302Z","dependency_job_id":null,"html_url":"https://github.com/vsaint1/php-anywhere-docker","commit_stats":null,"previous_names":["vsaint1/php-anywhere"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsaint1%2Fphp-anywhere-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsaint1%2Fphp-anywhere-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsaint1%2Fphp-anywhere-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsaint1%2Fphp-anywhere-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsaint1","download_url":"https://codeload.github.com/vsaint1/php-anywhere-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659054,"owners_count":20651526,"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","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":[],"created_at":"2024-12-04T14:11:01.664Z","updated_at":"2025-03-26T13:15:29.384Z","avatar_url":"https://github.com/vsaint1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-anywhere\n\nThis project aims to help you `build/develop` [PHP](https://www.php.net) applications in Docker containers without having to install anything locally.\n\n**Works with any PHP application type/framework**\n\n## Demo \n\nLive `reload`, almost no configuration delopy and easy to use.\n\n\u003cimg src=\"examples/demo.gif\" alt=\"php-anywhere example\" /\u003e\n\n# Requirements\n\n- Any operating system with [Docker](https://www.docker.com)\n\n\n# Project Specifications **[DOC]**\n\n- Nginx config file with fast_cgi default configuration, you can change it in `docker/nginx/php.conf` file\n\n- PHP config file with some configs, you can change it in `docker/php/php.ini` file\n\n- Current default project services running are `nginx`, `php`, `redis` and `sqlserver`\n\n1. app service:\n\n    - `php-fpm`\n\n    - `composer`\n\n    - `php-extensions`\n\n2. nginx service:\n\n    - `nginx`\n\n    - `fast_cgi`\n3. db service:\n\n    - `mssql`\n\n4. redis service:\n\n    - `redis`\n\n# How to use **[CONFIGURATION]**\n\n```nginx\n\n# current\nfastcgi_pass app:9000; \n\n# docker/nginx/php.conf\nfastcgi_pass container_name:fpm_port;  # MUST FOLLOW THIS PATTERN\n\n```\n\n\n```yml\n#docker-compose.yml\napp:\n    build:\n        context: .\n        dockerfile: Dockerfile\n    restart: unless-stopped\n    working_dir: /var/www/\n    networks:\n        - php_anywhere_network\n    volumes:\n        - ./:/var/www\n    depends_on:\n        - redis\n        - db\n```\n\n\n# Running **[COMMANDS]**\n\n\u003e Starting services dettached\n```bash\n\ndocker-compose up -d \n\n```\n\n\u003e Entering into container\n\n```bash\n\ndocker exec -it container_name bash\n\n```\n\n\u003e Stopping services\n\n```bash\n\ndocker-compose stop\n\n```\n\n\u003e **[NOTES]**:  This is \"base\" project, you can configure and change everything.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsaint1%2Fphp-anywhere-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsaint1%2Fphp-anywhere-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsaint1%2Fphp-anywhere-docker/lists"}