定制 solvire/common-utilities 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

solvire/common-utilities

最新稳定版本:v0.0.2

Composer 安装命令:

composer require solvire/common-utilities

包简介

Solvire Utilities Library

README 文档

README

Build Status Scrutinizer Code Quality Latest Stable Version License Total Downloads

About

This is a storage house for the more common things I have had to build. I use them in many projects so there is no point in killing me DRYly.

Installation

PHP 5.5+ or HHVM 3.6+, and Composer are required.

composer require solvire/solvire-utilities 

Libraries

Utilities

Options Checker

Usage:

use Solvire\Utilities\OptionsChecker as Ch;
Ch::ek($options, $requiredFields);

This code will just throw an exception if the variables are not present. It doesn't do anything for checking. I was tired of writing the stupid loop all the time.

Type Converter

HTTP

Request Utility

Usage:

use Solvire\HTTP\RequestUtil as Ru;
$ip = Ru::ip();

This will run through the various server variables that might be storing an IP

Application

Environment Accessors

Usage:

use Solvire\Application\Environment as Ev;
Ev::get($key);
Ev::get($key,$default);

This will get the environment variable listed. If you don't provide a default and the variable isn't set it will blow up on you. Ie. throw and error.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL
  • 更新时间: 2015-08-21