04/07
2015
dev-master
9999999-dev
proprietary
The Requires
- php >=5.3.3
- zendframework/zendframework 2.*@stable
by semih
Wallogit.com
2017 © Pedro Peláez
ZF2 TinyUrl is a Zend Framework 2 module that provides youtube-or-tinyurl features., (*1)
Add this project in your composer.json:, (*2)
"require": {
"noc-med/zf2-tinyurl": "dev-master"
}
Now tell composer to download ZF2 TinyUrl by running the command:, (*3)
$ php composer.phar update
Enabling it in your application.config.phpfile., (*4)
<?php
return array(
'modules' => array(
// ...
'NocMed\TinyUrl',
),
// ...
);
Call TinyUrl with the service manager, (*5)
/* @var $serviceManager \Zend\ServiceManager\ServiceLocatorInterface */ $tinyUrl = $serviceManager->get('noc-med.tinyurl'); $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4
Call TinyUrl in a view, (*6)
$tinyUrl = $this->plugin('noc-med.tinyurl'); $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4
proprietary