承接 katsana/remote-control 相关项目开发

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

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

katsana/remote-control

最新稳定版本:v1.1.0

Composer 安装命令:

composer require katsana/remote-control

包简介

Grant remote access to user account without sharing credentials

README 文档

README

Grant remote access to user account without sharing credentials.

tests Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

Installation

Remote Control can be installed via composer:

composer require "katsana/remote-control"

Configuration

The package will automatically register a service provider.

Next, you need to publish the Remote Control configuration file:

php artisan vendor:publish --provider="RemoteControl\RemoteServiceProvider" --tag="config"

Usages

Routing

Before creating any remote access, we need to declare verification route:

RemoteControl\Remote::verifyRoute('remote-control')->middleware('web');

To use signed URL you should include signed middleware:

RemoteControl\Remote::verifyRoute('remote-control')->middleware(['signed', 'web']);

Creating Remote Access

You can create a remote access by running the following code:

$user = request()->user();

$recipientEmail = 'email@example.org';
$content = 'Please help me';

$accessToken = RemoteControl\Remote::create($user, $recipientEmail, $content);

Using Generated Access Token

You can get the URL using the following method:

$accessToken->getUrl();

You can also get signed URL using the following method:

$accessToken->getSignedUrl();

You can automatically send an email to the recipient via the following Mailable:

Mail::send(new RemoteControl\Mail\GrantRemoteAccess($user, $accessToken, $content));

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固