caridea/random 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

caridea/random

最新稳定版本:1.0.0

Composer 安装命令:

composer require caridea/random

包简介

A shrimp of a random number generation library

README 文档

README

Caridea is a miniscule PHP application library. This shrimpy fellow is what you'd use when you just want some helping hands and not a full-blown framework.

This is its random number generation component. It has providers for Mcrypt and OpenSSL. Other random number generation in PHP isn't considered secure enough to have an adapter here.

Build Status Scrutinizer Code Quality Code Coverage

Installation

You can install this library using Composer:

$ composer require caridea/random

This project requires PHP 5.5 and has no dependencies.

Compliance

Releases of this library will conform to Semantic Versioning.

Our code is intended to comply with PSR-1, PSR-2, and PSR-4. If you find any issues related to standards compliance, please send a pull request!

Examples

Just a few quick examples.

if (\Caridea\Random\Mcrypt::isAvailable()) {
    $rando = new \Caridea\Random\Mcrypt();
    $bytes = $rando->generate(32);
}
if (\Caridea\Random\OpenSsl::isAvailable()) {
    $rando = new \Caridea\Random\OpenSsl();
    $bytes = $rando->generate(32);
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-06-03