定制 abstractrs/url-shortener 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

abstractrs/url-shortener

Composer 安装命令:

composer require abstractrs/url-shortener

包简介

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

README 文档

README

Total Downloads

Introduction

URL shortener package that gives a convenient Laravel Facade for mremi/UrlShortener

Laravel compatibility

Laravel translation
5.1.x 1.0.x
5.2.x 1.0.1 and higher
5.5.x 1.0.7 and higher
5.8.x 2.0 and higher

Installation and Setup

Require through composer

composer require abstractrs/url-shortener

Or manually edit your composer.json file:

"require": {
    abstractrs/url-shortener": "^2.0"
}

In config/app.php, add the following entry to the end of the providers array:

Abstractrs\UrlShortener\UrlShortenerServiceProvider::class,

And the following alias:

'UrlShortener' => Abstractrs\UrlShortener\Facades\UrlShortener::class,

Publish the configuration file, the form view and the language entries:

php artisan vendor:publish --provider="Abstractrs\UrlShortener\UrlShortenerServiceProvider"

Check the config files for the environment variables you need to set for the selected driver.

Usage

Shorten a url

```php
\UrlShortener::shorten('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->shorten('http://google.com');
```

Expand a url

```php
\UrlShortener::expand('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->expand('http://google.com');
```

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 28
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固