2017 © Pedro Peláez
 

library php-to-string

image

coduo/php-to-string

  • Wednesday, January 20, 2016
  • by norzechowicz
  • Repository
  • 3 Watchers
  • 40 Stars
  • 588,603 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 12 % Grown

The README.md

PHP To String

Simple library that converts PHP values into strings., (*1)

Status:, (*2)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*3)

Simple library that allows you to cast any php value into string, (*4)

Installation

composer require coduo/php-to-string

Usage

Supported types:, (*5)

  • string
  • integer
  • float/double
  • object
  • callable
  • array
  • resource
use Coduo\ToString\StringConverter;

$string = new StringConverter('foo');
echo $string; // "foo"

$double = new StringConverter(1.12312);
echo $double; // "1.12312"

$integer = new StringConverter(1);
echo $integer; // "1"

$datetime = new StringConverter(new \DateTime());
echo $datetime; // "\DateTime"

$array = new StringConverter(['foo', 'bar', 'baz']);
echo $array; // "Array(3)"

$res = fopen(sys_get_temp_dir() . "/foo", "w");
$resource = new StringConverter($res);
echo $resource; // "Resource(stream)"

The Versions

20/01 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Norbert Orzechowicz

php string to string to

20/01 2016

2.0.1

2.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Norbert Orzechowicz

php string to string to

13/12 2015

2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Norbert Orzechowicz

php string to string to

13/12 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Norbert Orzechowicz

php string to string to

13/12 2015

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Norbert Orzechowicz

php string to string to

18/10 2014

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Norbert Orzechowicz

php string to string to

08/05 2014

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Norbert Orzechowicz

php string to string to

08/05 2014

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Norbert Orzechowicz

php string to string to