{"id":18426908,"url":"https://github.com/rimelek/phar-examples","last_synced_at":"2026-02-07T14:02:30.428Z","repository":{"id":87428412,"uuid":"103758786","full_name":"rimelek/phar-examples","owner":"rimelek","description":"Usage examples of PHP Phar Archives","archived":false,"fork":false,"pushed_at":"2024-10-18T22:21:43.000Z","size":115,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-28T10:50:25.664Z","etag":null,"topics":["docker","docker-image","php","php-phars"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/rimelek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-16T14:36:31.000Z","updated_at":"2024-10-18T22:17:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"aab557a4-aa32-47ee-97a6-43918284bbf5","html_url":"https://github.com/rimelek/phar-examples","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fphar-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fphar-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fphar-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fphar-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimelek","download_url":"https://codeload.github.com/rimelek/phar-examples/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975319,"owners_count":21192197,"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":["docker","docker-image","php","php-phars"],"created_at":"2024-11-06T05:09:06.108Z","updated_at":"2026-02-07T14:02:26.643Z","avatar_url":"https://github.com/rimelek.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Phar example scripts\n========================\n\nAbout the project\n-----------------\n\nThis project contains examples how to use PHP Phar archives. \nUnder \"[examples](https://github.com/rimelek/phar-examples/tree/master/examples)\", \nyou can find more folders with examples. Each folder contains a README.md. \nYou can read it on GitHub or you can download this PHP application from GitHub\nor as a Docker image from [Docker Hub](https://hub.docker.com/r/rimelek/phar-examples/).\n\nWhen you run it, you will see a dashboard where you can run the examples, \nrebuild them and read the details of the chosen example.\n\n![Dashboard](https://ams03pap005files.storage.live.com/y4mfw4MCLD0ohxT_oJ5XslpmjTgJQlR_3j1TE6rPyxcZ6Z0aaIoZS86y5qBmXci3nx7EnzyAy4reiX19UQHFObH1XCxoUGGUUWzuO8-GLnLRp_bUHOCxZOhGesazmx85RwbvaF9wmYIYUoSOeTuoxUnXGle5uCwfHmoU60f16iaZo7LjSshDGKu7NUvQBUHUSb5?width=1024\u0026height=655\u0026cropmode=none)\n\nRun it in Docker container\n--------------------------\n\n```bash\ndocker run -it --rm -p 8080:80 rimelek/phar-examples\n```\n\nor in the background:\n\n```bash\ndocker run -d -p 8080:80 --name phar-examples rimelek/phar-examples\n```\n\nUse a volume if you want to keep the already built examples\n\n```bash\ndocker run -d -p 8080:80 --name phar-examples -v phar-examples_output:/var/www/html/output rimelek/phar-examples\n```\n\nIf you clone the repository, you can also use the `run.sh` to make the container available on port 8080\n\n```bash\n./run.sh\n```\n\nIf port 8080 is not available, you can pass another port:\n\n```bash\n./run.sh 9090\n```\n\nor save a `.env` file with an exported port\n\n```bash\nexport PORT=9090\n```\n\nNote: Export is necessary for `run.sh` to show the URL which can also become clickable in some IDE-s like PHPStorm.\n\nSupported tags\n--------------\n\n**Note:** The below table can also contain planned tags that are waiting for to be built and pushed to Docker Hub.\nFor more accurate information visit the [description on Docker Hub](https://hub.docker.com/r/rimelek/phar-examples/)\nwhich is updated the new images were pushed.\n\n|                               Dockerfile                                | Major | Minor | Patch |\n|:-----------------------------------------------------------------------:|:-----:|:-----:|:-----:|\n| [Link](https://github.com/rimelek/phar-examples/blob/v2.0.1/Dockerfile) |   2   |  2.0  | 2.0.1 |\n| [Link](https://github.com/rimelek/phar-examples/blob/v1.0.0/Dockerfile) |   1   |  1.0  | 1.0.0 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fphar-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimelek%2Fphar-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fphar-examples/lists"}