承接 werify/id-laravel 相关项目开发

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

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

werify/id-laravel

Composer 安装命令:

composer require werify/id-laravel

包简介

werify id pacakge for laravel.

README 文档

README

id/laravel is a library for connecting with Werify id (see more https://id.werify.net/).

Requirements

  • PHP 8.0 and above.
  • Built-in libcurl support.
  • Laravel 7

Installation

For running this example, you need to install werify/id-laravel library before. It can be done by two different methods:

1. Using Composer

You can install the library via Composer. If you don't already have Composer installed, first install it by following one of these instructions depends on your OS of choice:

After composer is installed, Then run the following command to install the Omise-PHP library:

php composer.phar install

Please see configuration section below for configuring your Omise Keys.

2. Manually

If you're not using Composer, you can also clone werify/id-laravel repository into the directory of sample code that you just installed this repository:

git clone https://github.com/Werify/id-laravel

However, using Composer is recommended as you can easily keep the library up-to-date. After cloning the repository, you need to replace line 3 in config.php from

3: require_once 'vendor/autoload.php';

to

3: require_once 'werify/id-laravel';

Please see configuration section below for configuring your Omise Keys.

Configuration

After you installed werify/id-laravel library already. Next, you need to configure id-laravel. you can publish configuration files and see config in config/auth-service config file.

Usage

this package publishes routes and jobs to connect to werify id service.

jobs

jobs published under Werify\IdLaravel\Jobs namespace are :

  • GetUserProfileJob
  • GetUserProfileFinancialInformationJob
  • GetUserProfileMetasJob
  • GetUserProfileNumbersJob
  • RequestOTPJob
  • VerifyOTPJob
  • GetUserProfileEducationJob

Routes

  • GET|HEAD api/werify/request-otp
  • GET|HEAD api/werify/verify-otp
request otp:

route: api/werify/request-otp params:

  • identifier (string)

response:

  • id (string)
  • hash(string)
  • otp(string)
verify otp:

route: api/werify/verify-otp params:

  • id (string)
  • hash(string)
  • otp(string)

response:

  • user info and access_token

changelog

2022/04/07 :
  • updated readme file
  • package added in packagist
2022/04/05 :
  • init
  • routes for request and verify otp
  • jobs for get profile information

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固