axl-media/short-pw-php-sdk

PHP的URL缩短API封装。

1.0.2 2019-05-23 11:55 UTC

This package is auto-updated.

Last update: 2024-09-23 23:21:38 UTC


README

$ composer require axl-media/short-pw-php-sdk

用法

use AXLMedia\ShortPw\ShortPw;

$api = new ShortPw('[your_api_key]');

// Returns an array
$api->shortenUrl('https://test.com');

// Returns just the short URL as string
$api->shorten('https://test.com');