承接 indigophp/guardian-doctrine 相关项目开发

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

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

indigophp/guardian-doctrine

Composer 安装命令:

composer require indigophp/guardian-doctrine

包简介

Doctrine integration for Guardian

README 文档

README

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads

Doctrine integration for Guardian.

Install

Via Composer

$ composer require indigophp/guardian-doctrine

Usage

Simply pass an EntityManagerInterface instance and an Entity class name to the Indigo\Guardian\Identifier\Doctrine class and you are good to go:

use Indigo\Guardian\Identifier\Doctrine;

$identifier = new Doctrine($entityManager, 'Indigo\Guardian\Caller\User\Simple');

// optional, ['username'] by default
$identifier->setIdentificationFields(['username']);

// optional, 'loginToken' by default
$identifier->setLoginTokenField('id');

Testing

$ phpspec run

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-30