2017 © Pedro Peláez
 

library common-utilities

Solvire Utilities Library

image

solvire/common-utilities

Solvire Utilities Library

  • Tuesday, September 29, 2015
  • by solvire
  • Repository
  • 1 Watchers
  • 3 Stars
  • 201 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Common Function Library

Build Status Scrutinizer Code Quality Latest Stable Version License Total Downloads, (*1)

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., (*2)

Installation

PHP 5.5+ or HHVM 3.6+, and Composer are required., (*3)

composer require solvire/solvire-utilities 

Libraries

Utilities

Options Checker, (*4)

Usage:, (*5)

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., (*6)

Type Converter, (*7)

HTTP

Request Utility, (*8)

Usage:, (*9)

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

This will run through the various server variables that might be storing an IP, (*10)

Application

Environment Accessors, (*11)

Usage:, (*12)

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., (*13)

The Versions

29/09 2015

dev-master

9999999-dev

Solvire Utilities Library

  Sources   Download

GPL

The Requires

 

The Development Requires

by Steven Scott

php http utilities formatters

21/08 2015

v0.0.2

0.0.2.0

Solvire Utilities Library

  Sources   Download

GPL

The Requires

 

The Development Requires

by Steven Scott