承接 bart/licensee 相关项目开发

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

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

bart/licensee

Composer 安装命令:

composer require bart/licensee

包简介

Simple PHP class for license generation and verification based on openssl signatures

README 文档

README

Latest Stable Version License ProjectStatus

A simple PHP class for license generation and verification based on openssl signatures

Usage

Using the Licensee class is as easy as pie, because it follows the PSR-0 namespace standard.

  1. Add "bart/licensee":"dev-master" to your composer.json require-dev
  2. Run composer update
  3. Enjoy!

Note: If you developing with the amazing Laravel 4 framework, you can add an alias: 'License' => 'Bart\Licensee\License'

Methods

createLicense($data, $private_key_path, [$license_path])
storeLicense($license_path)
validateLicense($license_path, $public_key_path)
getDataAndValidateLicense($license_path, $public_key_path)
createKeypair([$private_key_path], [$public_key_path])

Example

$lic = new License();

// The array we want to create a license from
$data = array(
  'licensee' => 'Company name',
  'version' => '1.0',
  'valid_until' => time() + 60*60*24,
  'key' => sha1(uniqid(true))
);

// Create a new public and private key
$lic::createKeypair('/tmp/private.pem', '/tmp/public.pem');

// Create the license
$lic->createLicense($data, '/tmp/private.pem', '/tmp/license.lic');

// Validate the license and get the data back
$valid_data = $lic->getDataAndValidateLicense('/tmp/license.lic', '/tmp/public.pem');

License

The Licensee package is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固