| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 42 | All time: 10,880 This week: 73 | ||||
| Version | License | PHP version | Categories | |||
| laravel-short-url 1.0.0 | MIT/X Consortium ... | 5 | HTTP, PHP 5, Databases |
| Description | Author | |
This package can generate and expand short URL stored in a database. |
|
<p align="center"><a href="https://pharaonic.io" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/logos/main/short-url.jpg" width="470"></a></p>
<p align="center"> <a href="https://packagist.org/packages/Pharaonic/laravel-short-url"><img src="https://img.shields.io/packagist/v/RaggiTech/laravel-short-url" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/Pharaonic/laravel-short-url"><img src="https://img.shields.io/packagist/dt/Pharaonic/laravel-short-url" alt="Total Downloads"></a> <a href="https://packagist.org/packages/Pharaonic/laravel-short-url"><img src="https://img.shields.io/packagist/l/Pharaonic/laravel-short-url" alt="License"></a> </p>
Install the latest version using Composer:
$ composer require pharaonic/laravel-short-url
$ php artisan vendor:publish --tag=laravel-short-url
$ php artisan migrate
<a name="generate" id="generate"></a>
// Generate from URL
shortURL()->generate('https://pharaonic.io');
// Generate from URL with Expiry date (string or Carbon object)
shortURL()->generate('https://pharaonic.io', '2027-07-07');
// Generate from Route
shortURL()->generate('route.name.here', ['param' => 1]);
// Generate from Route with Expiry date (string or Carbon object)
shortURL()->generate('route.name.here', ['param' => 1]', '2027-07-07');
<a name="read" id="read"></a>
echo shortURL('3dc0c3deda')->url; // http://127.0.0.1:8000/8ca3522787
// Blade
@shortURL('3dc0c3deda')
<a name="expired" id="expired"></a>
shortURL('3dc0c3deda')->expired // false
<a name="regenerate" id="regenerate"></a>
shortURL('3dc0c3deda')->regenerate() // Returns ShortURL Object
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.