Skip to content

semihs/zf2-tinyurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZF2 TinyUrl, v1.0

Introduction

ZF2 TinyUrl is a Zend Framework 2 module that provides youtube-or-tinyurl features.

Requirements

Installation

Main Setup

With composer

  1. Add this project in your composer.json:

    "require": {
        "noc-med/zf2-tinyurl": "dev-master"
    }
  2. Now tell composer to download ZF2 TinyUrl by running the command:

    $ php composer.phar update

Post installation

  1. Enabling it in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'NocMed\TinyUrl',
        ),
        // ...
    );

How to use ZF2 TinyUrl

  1. Call TinyUrl with the service manager

    /* @var $serviceManager \Zend\ServiceManager\ServiceLocatorInterface */	
    
    $tinyUrl = $serviceManager->get('noc-med.tinyurl');
    $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4
  2. Call TinyUrl in a view

    $tinyUrl = $this->plugin('noc-med.tinyurl');
    $tinyUrl->alphaID(907492350932095432); // received bfcuhKfMqt4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages