Download the PHP package marjose/url-shortener without Composer
On this page you can find all versions of the php package marjose/url-shortener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marjose/url-shortener
More information about marjose/url-shortener
Files in marjose/url-shortener
Package url-shortener
Short Description This will generate a shorten URL based on the supplied URL
License MIT
Homepage https://github.com/whoami213/url-shortener
Informations about the package url-shortener
URL Shortener
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Generating the URL by using the default setting from the Config file.
Generating the URL by adding expiration to the link.
Generating the URL by overriding the default setting from the Config file.
Validate if the shorted URL is expired or not
In your web.php route you can add a new route similar to this, so that you can capture and redirect to the original link once the like is validated by your controller.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of url-shortener with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ^8.37