Download the PHP package rezzza/shorty without Composer
On this page you can find all versions of the php package rezzza/shorty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rezzza/shorty
More information about rezzza/shorty
Files in rezzza/shorty
Download rezzza/shorty
More information about rezzza/shorty
Files in rezzza/shorty
Vendor rezzza
Package shorty
Short Description Underwear for your long urls
License MIT
Homepage https://github.com/rezzza/Shorty
Package shorty
Short Description Underwear for your long urls
License MIT
Homepage https://github.com/rezzza/Shorty
Please rate this library. Is it a good library?
Informations about the package shorty
Shorty Documentation



Underwear for your long urls
Installation
Use Composer to install: rezzza/shorty
.
In your `composer.json` you should have:
{
"require": {
"rezzza/shorty": "1.0.*"
}
}
Requirements
Shorty requires Guzzle.
Usage
Example with the Google shortener:
$googleShortener = new \Rezzza\Shorty\Provider\Google();
$googleShortener->setHttpAdapter(new \Rezzza\Shorty\Http\GuzzleAdapter());
// or
// $googleShortener->setHttpAdapter(new \Rezzza\Shorty\Http\CurlAdapter());
$shortUrl = $googleShortener->shorten('http://www.verylastroom.com/');
$longUrl = $googleShortener->expand('http://goo.gl/YY5Tz');
Example with the Chain shortener:
$chainShortener = new \Rezzza\Shorty\Provider\Chain();
$chainShortener->addProvider($googleShortener); // see example above
$chainShortener->addProvider($bitlyShortener);
$shortUrl = $chainShortener->shorten('http://www.verylastroom.com/');
$longUrl = $chainShortener->expand('http://goo.gl/YY5Tz');
Unit Tests
You can run tests with:
bin/atoum -d tests/units
Release notes
1.1.0
- Added Chain provider.
1.0.0
- Added Google Url Shortener.
- Added Bitly Url Shortener.
- Added Curl Http adapter.
All versions of shorty with dependencies
PHP Build Version
Package Version
The package rezzza/shorty contains the following files
Loading the files please wait ....