承接 cryptr/cryptr-php 相关项目开发

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

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

cryptr/cryptr-php

最新稳定版本:0.0.1

Composer 安装命令:

composer require cryptr/cryptr-php

包简介

Cryptr Package to handle Cryptr authentication processes

README 文档

README

PHP SDK for Cryptr Authentication processes

Learn more on our online Documentation 📚.

Installation

Requirements

  • PHP 7.3+

Installation

Use the following composer command to install our SDK

composer require cryptr/cryptr-php

This SDK is mainly focused on PHP API applications, securing your endpoints.

here is how you can use it

<?php

require Cryptr\Cryptr;

$yourFetchedTokenFromAuthHeader = 'ey....';
$cryptrBaseUrl = "https://your-company.authent.me";
$allowedOrigins = ["https://www.your-company.com"];

$cryptr = new Cryptr($cryptrBaseUrl, $allowedOrigins);

$cryptr->validateToken($yourFetchedTokenFromAuthHeader) // -> returns true or throw according error

// Be aware that we look for $_ENV['CRYPTR_BASE_URL'] and $_ENV['CRYPTR_ALLOWED_ORIGINS']
// Like that you can just call
$cryptr = new Cryptr();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-09