{"id":15111321,"url":"https://github.com/mrbeandev/url-short","last_synced_at":"2026-01-20T15:01:40.041Z","repository":{"id":256026666,"uuid":"854156410","full_name":"mrbeandev/URL-SHORT","owner":"mrbeandev","description":"A sleek, efficient, and user-friendly PHP URL shortener with a minimalist design and enhanced security features.","archived":false,"fork":false,"pushed_at":"2024-09-08T14:40:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T17:23:57.553Z","etag":null,"topics":["html","js","json","json-db","php","tinyurl","tinyurl-api","url-shortner","url-shortner-api"],"latest_commit_sha":null,"homepage":"https://sh.mrbean.dev","language":"PHP","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/mrbeandev.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":"2024-09-08T14:25:29.000Z","updated_at":"2024-09-08T14:40:35.000Z","dependencies_parsed_at":"2024-09-08T16:31:36.177Z","dependency_job_id":"88658325-4273-425f-ad38-2d84fba1469d","html_url":"https://github.com/mrbeandev/URL-SHORT","commit_stats":null,"previous_names":["mrbeandev/url-short"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrbeandev/URL-SHORT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbeandev%2FURL-SHORT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbeandev%2FURL-SHORT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbeandev%2FURL-SHORT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbeandev%2FURL-SHORT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrbeandev","download_url":"https://codeload.github.com/mrbeandev/URL-SHORT/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbeandev%2FURL-SHORT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28605940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["html","js","json","json-db","php","tinyurl","tinyurl-api","url-shortner","url-shortner-api"],"created_at":"2024-09-26T00:03:29.150Z","updated_at":"2026-01-20T15:01:40.025Z","avatar_url":"https://github.com/mrbeandev.png","language":"PHP","readme":"# URL-Short\n\nA sleek, efficient, and user-friendly URL shortener with a minimalist design and enhanced security features.\n#### Live Demo : [sh.mrbean.dev](https://sh.mrbean.dev)\n![image](https://github.com/user-attachments/assets/81310c3d-6888-4e14-9940-137b2af16d9f)\n\n## Features\n\n- **Clean, Minimalist UI**: A modern, responsive design that works well on all devices.\n- **Efficient Shortening**: Quickly generate short URLs for long web addresses.\n- **Copy to Clipboard**: Easily copy shortened URLs with a single click.\n- **Duplicate Detection**: Avoids creating multiple short URLs for the same long URL.\n- **reCAPTCHA Integration**: Prevents spam and abuse through Google's reCAPTCHA service.\n- **API Support**: Shortening URLs programmatically through a simple API.\n- **Animations**: Smooth, subtle animations enhance the user experience.\n\n## Tech Stack\n\n- PHP 7.4+\n- HTML5\n- CSS3\n- JavaScript (ES6+)\n- Google reCAPTCHA v2\n- Font Awesome 6.1.1\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/yourusername/url-shortener.git\n   cd url-shortener\n   ```\n\n2. Configure your web server (e.g., Apache, Nginx) to serve the project directory.\n\n3. Create a `urls.json` file in the project root with write permissions:\n   ```\n   touch urls.json\n   chmod 666 urls.json\n   ```\n\n4. Sign up for Google reCAPTCHA and get your site key and secret key.\n\n5. Update the configuration in `index.php`:\n   - Set the `$base_url` to your domain.\n   - Replace `YOUR_RECAPTCHA_SITE_KEY` and `YOUR_RECAPTCHA_SECRET_KEY` with your actual reCAPTCHA keys.\n\n6. Ensure PHP has write permissions for the project directory.\n\n## Usage\n\n### Web Interface\n\n1. Visit the URL shortener website.\n2. Enter a long URL in the input field.\n3. Complete the reCAPTCHA challenge.\n4. Click the shorten button.\n5. Copy the generated short URL.\n\n### API Usage\n\nTo shorten a URL programmatically, send a GET request to:\n\n```\nhttps://yourdomain.com/index.php?url=https://long-url-to-shorten.com\n```\n\nThe API will return a JSON response:\n\n```json\n{\n  \"short_url\": \"https://yourdomain.com/abcdef\"\n}\n```\n\n## Customization\n\n- Modify `styles.css` to change the appearance of the URL shortener.\n- Update `script.js` to add or modify client-side functionality.\n\n## Security Considerations\n\n- Regularly update PHP and all dependencies.\n- Use HTTPS to encrypt traffic between users and your server.\n- Implement rate limiting to prevent API abuse.\n- Regularly backup the `urls.json` file.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Contact\n\nIf you have any questions, feel free to reach out to me at [@mrbeandev](https://t.me/mrbeandev) or open an issue in this repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrbeandev%2Furl-short","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrbeandev%2Furl-short","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrbeandev%2Furl-short/lists"}