{"id":14975022,"url":"https://github.com/gallib/laravel-short-url","last_synced_at":"2025-04-05T09:06:35.571Z","repository":{"id":29735925,"uuid":"122629531","full_name":"gallib/laravel-short-url","owner":"gallib","description":"A Laravel package to shorten urls","archived":false,"fork":false,"pushed_at":"2023-02-01T23:44:11.000Z","size":156,"stargazers_count":164,"open_issues_count":3,"forks_count":36,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T07:57:19.790Z","etag":null,"topics":["laravel","laravel-package","laravel9","package","shorten-urls","shortener","url","url-shortener"],"latest_commit_sha":null,"homepage":"","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/gallib.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}},"created_at":"2018-02-23T14:10:30.000Z","updated_at":"2024-07-24T21:59:55.000Z","dependencies_parsed_at":"2023-02-17T12:15:44.039Z","dependency_job_id":null,"html_url":"https://github.com/gallib/laravel-short-url","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gallib%2Flaravel-short-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gallib%2Flaravel-short-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gallib%2Flaravel-short-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gallib%2Flaravel-short-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gallib","download_url":"https://codeload.github.com/gallib/laravel-short-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312077,"owners_count":20918344,"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":["laravel","laravel-package","laravel9","package","shorten-urls","shortener","url","url-shortener"],"created_at":"2024-09-24T13:51:24.507Z","updated_at":"2025-04-05T09:06:35.271Z","avatar_url":"https://github.com/gallib.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg width=\"80%\" src=\"https://raw.githubusercontent.com/gallib/laravel-short-url/master/assets/images/logo.png\" alt=\"Laravel Short URL logo\" /\u003e\n\u003c/p\u003e\n\n# Laravel Short Url [![Build Status](https://travis-ci.org/gallib/laravel-short-url.svg?branch=master)](https://travis-ci.org/gallib/laravel-short-url) [![StyleCI](https://styleci.io/repos/122629531/shield?branch=master)](https://styleci.io/repos/122629531)\n\nLaravel Short Url is a package allowing you to shorten urls.\n\n## Installation\n\nWith composer\n\n```\ncomposer require gallib/laravel-short-url\n```\n\nthen run\n\n```\nphp artisan vendor:publish --provider=\"Gallib\\ShortUrl\\ShortUrlServiceProvider\"\nphp artisan migrate\n```\n\nfinally, paste ``` ShortUrl::routes(); ``` at the end of ``` routes/web.php ```\n\n## Configuration\n\nLaravel Short Url configuration file can be found on ``` config/shorturl.php ```\n\n- **blacklist** : Allows to blacklist urls. Keywords can be either an url, a keyword or an extension\n\n### Advanced configuration\n\nInstead of adding ``` ShortUrl::routes(); ``` you can call three separates methods:\n- ``` ShortUrl::createRoutes(); ``` to shorten urls\n- ``` ShortUrl::manageRoutes(); ``` to manage urls\n- ``` ShortUrl::redirectRoute(); ``` to redirect to the url\n\nthis allows you to add middlewares or prefix routes.\n\n### Migration Customization\n\nIf you are not going to use Short Url's default migrations, you should call the\n`ShortUrl::ignoreMigrations();`  method in the `register` method of your `AppServiceProvider`.\nYou may export the default migrations using\n\n```\nphp artisan vendor:publish --tag=shorturl-migrations\n```\n\n## Nice!\n\nLaravel short url is now set up on your homepage.\n\n## Credits\n- Created by [Alain](https://twitter.com/gallib_net)\n- Logo by [Caneco](https://twitter.com/caneco)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgallib%2Flaravel-short-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgallib%2Flaravel-short-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgallib%2Flaravel-short-url/lists"}