2017 © Pedro Peláez
 

library php-url-shortener

PHP url shortener

image

monster3d/php-url-shortener

PHP url shortener

  • Monday, November 28, 2016
  • by Monster3D
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP-Url-Shortener

Description:

This library for simple to take short url. Usind Google Shortener API., (*1)

Install this package with Composer

Require this package with Composer., (*2)

composer require monster3d/php-url-shortener

Or add your dependencies to composer.json file, (*3)

"require": {
    "monster3d/php-url-shortener": "*"
    }

How to use:

<?php
//include composer
require __DIR__ . '/vendor/autoload.php';
use Monster3D\Shortener\Short;

//Set google api key
Short::setGoogleAPIKey('YOUR-GOOGLE-API-KEY');
$result = Short::link('http://mylongurl.ru/');
print_r($result);

in the var: $result will be stdClass object. ```js stdClass object ( [kind] => urlshortener#url [id] => https://goo.gl/VQ5T [longUrl] => http://mylongurl.ru/ ), (*4)

The Versions

28/11 2016

dev-master

9999999-dev https://github.com/Monster3D/php-url-shortener

PHP url shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Baev aka Monster3D

url php shortener

02/10 2016

dev-bugfix

dev-bugfix https://github.com/Monster3D/php-url-shortener

PHP url shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Baev aka Monster3D

url php shortener

02/10 2016

v0.2

0.2.0.0 https://github.com/Monster3D/php-url-shortener

PHP url shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Baev aka Monster3D

url php shortener

01/10 2016

v0.1

0.1.0.0 https://github.com/Monster3D/php-url-shortener

PHP url shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikolay Baev aka Monster3D

url php shortener