tienhm7/auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

tienhm7/auth

Composer 安装命令:

composer require tienhm7/auth

包简介

The package is used to authentication

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Auth Package

Simple package for registration and login

Use Package

// Add package to composer
composer require tienhm7/auth

// Intergrate to Framework
Example Laravel
<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use tienhm\Backend\Auth\Http\WebServiceAccount;

class AuthController extends Controller
{
    private WebServiceAccount $module;

    public function __construct()
    {
        parent::__construct();
        $this->module = (new WebServiceAccount($this->config['OPTIONS']))->setSDKConfig($this->config);
    }

    public function login(Request $request)
    {
        $data = $request->only('user', 'password');
        $api = $this->module;
        $api->setInputData($data)
            ->login();

        return $api->getResponse();
    }

    public function register(Request $request)
    {
        $data = $request->only('username', 'fullname', 'email', 'password', 'confirm_password', 'phone');
        $api = $this->module;
        $api->setInputData($data)
            ->register();

        return $api->getResponse();
    }
}

Contact & Support

If any question & request, please contact following information

Name Email Skype Facebook
Hoang Manh Tien tienhm@beetsoft.com.vn conthuyendocmoc_a888 @tiencntt2

From Vietnam with Love <3

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固