定制 slvler/cuttly 二次开发

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

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

slvler/cuttly

最新稳定版本:v2.0.2

Composer 安装命令:

composer require slvler/cuttly

包简介

Cutt.ly API wrapper for Laravel

README 文档

README

tests Latest Stable Version License Total Downloads

This package provides a convenient wrapper to the Cuttly API for Laravel applications.

Requirements

  • PHP 8.1
  • Laravel 9.x | 10.x

Installation

To install this package tou can use composer:

composer require slvler/cuttly

Usage

Find player

$data['short'] = 'google.com';

Cuttly::short($data);

URL Shortener:

{
  "url": {
    "status": 7,
    "fullLink": "http://google.com",
    "date": "2023-08-07",
    "shortLink": "https://cutt.ly/ewdVijlY",
    "title": "Google"
  }
}

Edit Url

$data['edit'] = 'cutt.ly/LwdCoBmo';

Cuttly::edit($data);

Edit URL:

{
  "url": {
    "status": 1
  }
}

Find games

$data['stats'] = 'cutt.ly/ewdVijlY';

Cuttly::stats($data);

URL Stats:

{
  "stats": {
    "status": 1,
    "clicks": 0,
    "date": "2023-08-07",
    "title": "Google",
    "fullLink": "http://google.com",
    "shortLink": "https://cutt.ly/ewdVijlY",
    "facebook": 0,
    "twitter": 0,
    "pinterest": 0,
    "instagram": 0,
    "googlePlus": 0,
    "linkedin": 0,
    "rest": 0,
    "devices": {},
    "refs": {},
    "bots": "Insufficient subscription level"
  }
}

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.

Contributing

You're very welcome to contribute. Please see CONTRIBUTING for details.

统计信息

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

GitHub 信息

  • Stars: 40
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-07