承接 noc-med/zf2-tinyurl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

noc-med/zf2-tinyurl

Composer 安装命令:

composer require noc-med/zf2-tinyurl

包简介

README 文档

README

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

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2014-11-04