{"id":16674500,"url":"https://github.com/settermjd/php-url-shortener","last_synced_at":"2025-09-07T01:35:18.854Z","repository":{"id":141498200,"uuid":"543138679","full_name":"settermjd/php-url-shortener","owner":"settermjd","description":"This is a small, simplistic example of creating a URL shortener in PHP.","archived":false,"fork":false,"pushed_at":"2022-10-06T07:30:22.000Z","size":370,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T20:44:10.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/settermjd.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-09-29T13:28:58.000Z","updated_at":"2025-03-06T11:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"75cf3fb8-f3da-453a-9915-cbc36fd8f6d2","html_url":"https://github.com/settermjd/php-url-shortener","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/settermjd/php-url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fphp-url-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fphp-url-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fphp-url-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fphp-url-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/php-url-shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fphp-url-shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986614,"owners_count":25202704,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-10-12T12:43:23.218Z","updated_at":"2025-09-07T01:35:18.833Z","avatar_url":"https://github.com/settermjd.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP URL Shortener\n\nThis is a small, simplistic example of creating a URL shortener in PHP.\n\n## Requirements\n\nTo use this application, you will need the following:\n\n- [Docker Engine](https://docs.docker.com/engine/install/) and [Docker Compose](https://docs.docker.com/compose/install/) **or** PHP 8.1 with the [PDO](https://www.php.net/manual/en/pdo.installation.php) and [PDO_PGSQL](https://www.php.net/manual/en/ref.pdo-pgsql.php) extensions and [PostgreSQL](https://www.postgresql.org/) 14 or above.\n- Your favourite IDE or code editor\n- [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) installed globally\n\n## Usage\n\nFirst, clone the project to a directory on your local machine by running the following command:\n\n```bash\ngit clone git@github.com:settermjd/php-url-shortener.git php-url-shortener\n```\n\nThen, start the application. \nThe two quickest ways to do so are: \n\n1. Use Docker Compose\n1. Use PHP's built-in web server\n\nInstructions for both are listed below.\n\n### Using Docker Compose\n\nTo start the application, run the following command in the top-level directory of the project.\n\n```bash\ndocker compose up -d --build\n```\n\n**Note:** The first time that you run the command, if you don't have one or more images in your local Docker cache, then they have to be downloaded. \nThis shouldn't take too long, allowing for the speed of your internet connection.\n\n**New to Docker Compose and want a hand getting started?** \nThen grab a copy of my free book: [Deploy with Docker Compose](https://deploywithdockercompose.com/).\n\n### Using PHP's built-in webserver\n\nTo start the application, run the following command in the top-level directory of the project.\n\n```bash\nphp -S 0.0.0.0:8080 -t public\n```\n\n## Have Questions?\n\nIf you have any questions or queries, either create [an issue](https://github.com/settermjd/php-url-shortener/issues/new/choose) or a PR, or email me: matthew[at]matthewsetter.com.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fphp-url-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Fphp-url-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fphp-url-shortener/lists"}