martyix/googl-php
最新稳定版本:v1.0.2
Composer 安装命令:
composer require martyix/googl-php
包简介
Fork of sebi/googl-php.
关键字:
README 文档
README
Introduction
googl-php is a small and simple PHP class intended to use with the Google URL shortening service "Goo.gl" and licensed under the GNU GPL v3.
Functions
The class currently supports 2 methods:
- Shorten a URL
- Expand (look up) an already shortened URL
Usage
<?php require_once('Googl.class.php'); $googl = new Googl('YOUR_API_KEY'); // Shorten URL $googl->shorten('http://www.google.com/'); // Look up long URL $googl->expand('http://goo.gl/fbsS'); unset($googl);
API key
You don't need an API key to use the class (=the shortening service).
But as Google writes in their own "Getting Started" guide, it's "highly recommended" to use one. And clicking a button doesn't really hurt, right?
Further info
For further information about Goo.gl and its API, please visit: https://developers.google.com/url-shortener/.
统计信息
- 总下载量: 21.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2014-08-12