{"id":18318567,"url":"https://github.com/maxmind/geolite2-ws-blogpost","last_synced_at":"2025-10-30T12:30:52.831Z","repository":{"id":66183124,"uuid":"327791296","full_name":"maxmind/geolite2-ws-blogpost","owner":"maxmind","description":"Integrating MaxMind's Free and Paid IP Geolocation Web Services (in PHP)","archived":false,"fork":false,"pushed_at":"2021-11-18T15:28:36.000Z","size":803,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-12-23T08:12:11.281Z","etag":null,"topics":["geoip2","geolite2","geolocation","ip","maxmind","php","webservice"],"latest_commit_sha":null,"homepage":"https://blog.maxmind.com/2021/01/11/integrating-maxminds-free-and-paid-ip-geolocation-web-services-in-php/","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/maxmind.png","metadata":{"files":{"readme":"README-Docker.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":"2021-01-08T03:43:39.000Z","updated_at":"2024-11-27T07:40:49.000Z","dependencies_parsed_at":"2023-02-23T01:15:46.801Z","dependency_job_id":null,"html_url":"https://github.com/maxmind/geolite2-ws-blogpost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2Fgeolite2-ws-blogpost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2Fgeolite2-ws-blogpost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2Fgeolite2-ws-blogpost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2Fgeolite2-ws-blogpost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxmind","download_url":"https://codeload.github.com/maxmind/geolite2-ws-blogpost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238962678,"owners_count":19559527,"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":["geoip2","geolite2","geolocation","ip","maxmind","php","webservice"],"created_at":"2024-11-05T18:10:02.419Z","updated_at":"2025-10-30T12:30:47.497Z","avatar_url":"https://github.com/maxmind.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker README\n\n* [Getting Started](#getting-started)\n* [Building Your Docker Container](#building-your-docker-container)\n* [Running the Code](#running-the-code)\n* [Refactoring Your Code](#refactoring-your-code)\n  * [Mapping your local volume to the Docker container](#mapping-your-local-volume-to-the-docker-container)\n\n## Getting Started\n\nA `Dockerfile` has been provided in order to make this code more convenient to\nrun. To get started via `Docker`, you'll need:\n\n* A working Docker environment\n* A `git checkout` of this repository\n* Your MaxMind Account ID and License Key\n\n## Building Your Docker Container\n\nAfter you have checked out this repository, run this command from the root\ndirectory. (Replace `YOURACCOUNTID` with your MaxMind Account ID and\n`YOURLICENSEKEY` with your License Key first. Linux users may need to preface\nthis command with `sudo`.)\n\n```bash\ndocker build . -t geolite2-ws-blogpost --build-arg MM_ACCOUNT_ID=YOURACCOUNTID --build-arg MM_LICENSE_KEY=YOURLICENSE_KEY\n```\n\nThis will build your Docker container.\n\n## Running the Code\n\nTo start up your server, run this command. (Linux users may need to preface this\ncommand with `sudo`.)\n\n```bash\ndocker run -p 9595:9595 geolite2-ws-blogpost:latest\n```\n\nNow you can visit http://localhost:9595 on your host machine and make GeoLite2\nWeb Service queries.\n\n## Refactoring Your Code\n\nYou can freely edit the code outside of the Docker container and then re-run it\nfrom inside the container. To do so, you'll need to map your local volume to the\ncontainer and install the dependencies again as they won't exist in your local\nvolume. (Linux users may need to preface the Docker command with `sudo`.)\n\n### Mapping your local volume to the Docker container\n```bash\ndocker run -it -p 9595:9595 --volume $PWD:/project geolite2-ws-blogpost:latest /bin/bash\ncurl -sS https://getcomposer.org/installer | php\nphp composer.phar require geoip2/geoip2:~2.0\nphp -S 0:9595\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmind%2Fgeolite2-ws-blogpost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmind%2Fgeolite2-ws-blogpost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmind%2Fgeolite2-ws-blogpost/lists"}