2017 © Pedro Peláez
 

library xixi-helpers

XiXi helper functions contain Chemical etc.

image

billyct/xixi-helpers

XiXi helper functions contain Chemical etc.

  • Tuesday, May 22, 2018
  • by billyct
  • Repository
  • 1 Watchers
  • 0 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

xixi-helpers

Build Status, (*1)

XiXi helper functions contain Chemical etc., (*2)

Install

composer require billyct/xixi-helpers

Usage

require_once './vendor/autoload.php';

is_cas('50-00-0');
// => true

is_ec('254-559-2');
// => true

API

reg_cas()

reg for CAS numbers, (*3)

reg_ec()

reg for EC numbers, (*4)

is_cas($value)

check $value is CAS number, (*5)

is_ec($value)

check $value is EC number, (*6)

month_abbreviation_en($date)

convert date('M') to the right month abbreviation, (*7)

is_none($value)

check $value is safe substance c-l-inventories, (*8)

is_no_data_available($value)

check $value is no data available, is same as is_null, (*9)

is_hazard($value)

not is_none and not is_no_data_available, (*10)

range_split($value)

split range string, '12 - 90%' get ['12', '90%'], (*11)

str_to_float($value)

convert string to float, it support negative number, for example: '-9.8%' get -9.8, (*12)

is_dangerous_ph($pH)

check the pH value is dangerous pH, (*13)

rate($from, $to)

get the currency rate from fixer.io, example: rate('EUR', 'CNY'), (*14)

is_wechat_browser($request)

check the Illuminate\Http\Request object is from wechat browser., (*15)

License

MIT © billyct, (*16)

The Versions

22/05 2018

dev-master

9999999-dev

XiXi helper functions contain Chemical etc.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Avatar billyct

chemical abbreviation xixi

26/04 2018

0.0.5

0.0.5.0

XiXi helper functions contain Chemical etc.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Avatar billyct

chemical abbreviation xixi

23/01 2018

0.0.4

0.0.4.0

XiXi helper functions contain Chemical etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar billyct

chemical abbreviation xixi

23/01 2018

0.0.3

0.0.3.0

XiXi helper functions contain Chemical etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar billyct

chemical abbreviation xixi

08/01 2018

0.0.2

0.0.2.0

XiXi helper functions contain Chemical etc.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Avatar billyct

chemical abbreviation xixi