2017 © Pedro Peláez
 

library zf2-tinyurl

image

noc-med/zf2-tinyurl

  • Saturday, July 4, 2015
  • by semihs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ZF2 TinyUrl, v1.0

Introduction

ZF2 TinyUrl is a Zend Framework 2 module that provides youtube-or-tinyurl features., (*1)

Requirements

Installation

Main Setup

With composer

  1. Add this project in your composer.json:, (*2)

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

    $ php composer.phar update
    

Post installation

  1. Enabling it in your application.config.phpfile., (*4)

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

How to use ZF2 TinyUrl

  1. Call TinyUrl with the service manager, (*5)


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


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

The Versions

04/07 2015

dev-master

9999999-dev

  Sources   Download

proprietary

The Requires

 

by semih