承接 piotzkhider/firebase-authentication-module 相关项目开发

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

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

piotzkhider/firebase-authentication-module

Composer 安装命令:

composer require piotzkhider/firebase-authentication-module

包简介

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status Build Status

Japanese

Firebase Authentication Module for BEAR.Sunday

Installation

Composer install

$ composer require piotzkhider/firebase-authentication-module

Module install

use Piotzkhider\FirebaseAuthenticationModule\FirebaseAuthenticationModule;
class AppModule extends AbstractAppModule
{
    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $appDir = $this->appMeta->appDir;
        require_once $appDir . '/env.php';
        ...
        $this->install(new FirebaseAuthenticationModule(getenv('GOOGLE_APPLICATION_CREDENTIALS')));
        ...
    }
}

@Authenticate

@Authenticate is a annotation for authentication.
Authentication process is executed before process the method.

class Tasks extends ResourceObject
{
    /**
     * @Authenticate
     */
    public function onGet(): ResourceObject
    {

The authenticated user can be defined directly as a method argument.
For that purpose it need specified in @Authenticate attribute. And it set null of default parameter in last of arguments like @Assisted.

class Tasks extends ResourceObject
{
    /**
     * @Authenticate(user="user")
     */
    public function onGet(UserRecord $user = null): ResourceObject
    {

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固