承接 ozanhazer/safe-link 相关项目开发

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

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

ozanhazer/safe-link

Composer 安装命令:

composer require ozanhazer/safe-link

包简介

Sign URLs with expiration date to transfer data between projects

README 文档

README

Unit Tests

Framework-agnostic, lightweight URL signer. You can use SafeLink to transfer data between projects.

Sign the url in project 1:

use Alfatron\SafeLink;

$safelink = new SafeLink('my-not-short-private-key');
$safelink->redirect('https://second-project/path', ['user' => 'test@example.com', 'action' => 'feed the cat'])

Retrieve it in project 2:

use Alfatron\SafeLink;

$safelink = new SafeLink('my-not-short-private-key');
$data = $safeLink->verify();
assert($data['user'], 'test@example.com');

Features

  • Uses built-in php serializer to serialize the data to be transferred.
  • Can transfer any php type that can be serialized: object, array, string, integer.
  • Supports php 7.0+.
  • Has a default timeout of 10sec.s (customizable).
  • Uses openssl extension to encrypt the data (AES-256 CBC)

Installation

Run composer require ozanhazer/safe-link and you're good to go!

Options

Timeout is 10sec.s by default to avoid replay attacks. You can change it like:

use Alfatron\SafeLink;

$safeLink = new SafeLink($privateKey, ['timeout' => 2]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固