2017 © Pedro Peláez
 

library realtype

Get the real type from a string

image

tebru/realtype

Get the real type from a string

  • Saturday, October 1, 2016
  • by natebrunette
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,855 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight, (*1)

Realtype

A PHP library that gets the real type from a string. Sometimes doubles, integers, or booleans will exist inside a string. This library determines what type it really is and returns that., (*2)

Installation

composer require tebru/realtype

Usage

\Tebru\Realtype\Realtype::get('2.2'); // returns 2.2
\Tebru\Realtype\Realtype::get('2.0'); // returns 2.0
\Tebru\Realtype\Realtype::get('2'); // returns 2
\Tebru\Realtype\Realtype::get('0'); // returns 0
\Tebru\Realtype\Realtype::get('true'); // returns true
\Tebru\Realtype\Realtype::get('false'); // returns false
\Tebru\Realtype\Realtype::get('string'); // returns 'string'
\Tebru\Realtype\Realtype::get(2.2); // returns 2.2

The Versions

01/10 2016

v0.1.4

0.1.4.0

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette

01/10 2016

v0.1.3

0.1.3.0

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette

26/05 2016

dev-master

9999999-dev

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette

26/05 2016

v0.1.2

0.1.2.0

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette

01/03 2016

v0.1.1

0.1.1.0

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette

23/02 2016

v0.1.0

0.1.0.0

Get the real type from a string

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Nate Brunette