noc-med / zf2-tinyurl
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/noc-med/zf2-tinyurl
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*@stable
This package is not auto-updated.
Last update: 2025-10-21 08:22:19 UTC
README
Introduction
ZF2 TinyUrl is a Zend Framework 2 module that provides youtube-or-tinyurl features.
Requirements
- Zend Framework 2 (latest master)
Installation
Main Setup
With composer
- 
Add this project in your composer.json: "require": { "noc-med/zf2-tinyurl": "dev-master" } 
- 
Now tell composer to download ZF2 TinyUrl by running the command: $ php composer.phar update 
Post installation
- 
Enabling it in your application.config.phpfile.<?php return array( 'modules' => array( // ... 'NocMed\TinyUrl', ), // ... ); 
How to use ZF2 TinyUrl
- 
Call TinyUrl with the service manager /* @var $serviceManager \Zend\ServiceManager\ServiceLocatorInterface */ $tinyUrl = $serviceManager->get('noc-med.tinyurl'); $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4 
- 
Call TinyUrl in a view $tinyUrl = $this->plugin('noc-med.tinyurl'); $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4