2017 © Pedro Peláez
 

library ucenter-client

Ucenter Client

image

runphp/ucenter-client

Ucenter Client

  • Thursday, January 2, 2014
  • by runphp
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

UcenterClient

Introduction

UcenterClient is a ucenter client for zf2., (*1)

[ucenter]http://www.comsenz.com/products/ucenter, (*2)

Installation

download this project it into ./vendor/ or ./modules/, (*3)

Post installation

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

    <?php
    return array(
        'modules' => array(
            'UcenterClient',
        ),
        // ...
    );
    
  2. Copy the config/ucenter.global.php.dist file into your ./config/autoload directory. (Remove the .distpart) and configure it, (*5)

  3. use, (*6)

    // ...
    $cookie = $this->getRequest()->getCookie();
    if ($cookie->offsetExists('ucenter_auth')) {
       $param = $cookie->offsetGet('ucenter_auth');
       $uc = $this->getServiceLocator()->get('ucenter_service');
       $user = $uc->getUser($param);
    }
    // ...
    
  4. Any problem email to runphp@qq.com

The Versions

02/01 2014

dev-master

9999999-dev http://www.runphp.net

Ucenter Client

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

ucenter client