2017 © Pedro Peláez
 

library shorturl

This is a class of short url service using Laravel 5

image

xbb/shorturl

This is a class of short url service using Laravel 5

  • Friday, August 25, 2017
  • by XBisATrouble
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

shortUrl

一个生成短链接的 Laravel 扩展。, (*1)

安装

$ composer require xbb/shorturl

配置

  1. 添加下面一行到 config/app.phpproviders 部分:, (*2)

    Xbb\ShortUrl\ShortUrlServiceProvider::class,
    
  2. 发布迁移文件, (*3)

    $ php artisan vendor:publish --provider='Xbb\ShortUrl\ShortUrlServiceProvider'
    
  3. 迁移数据库表, (*4)

    $ php artisan migrate
    

使用

  1. 生成 ```php app('shortUrl')->makeShortUrl($url);, (*5)

  2. 跳转, (*6)

    header('Location:'.app('shortUrl')->hit($shortUrl));
    

License

MIT, (*7)

The Versions

25/08 2017

dev-master

9999999-dev

This is a class of short url service using Laravel 5

  Sources   Download

MIT

by XB

25/08 2017

v1.0.0

1.0.0.0

This is a class of short url service using Laravel 5

  Sources   Download

MIT

by XB