2017 © Pedro Peláez
 

library types-autoboxing

Wrapping primitive types into objects automatically

image

instinct/types-autoboxing

Wrapping primitive types into objects automatically

  • Thursday, June 26, 2014
  • by alquerci
  • Repository
  • 2 Watchers
  • 11 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP types autoboxing

An implementation of the experimental PHP extension SPL Types., (*1)

Requirements

PHP 5.3.3 or above (at least 5.3.4 recommended to avoid potential bugs), (*2)

Installation

Using Composer, just add the following configuration to your composer.json:, (*3)

``` json { "require": { "instinct/types-autoboxing": "1.0.*" } }, (*4)


If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command: ``` sh curl -sS https://getcomposer.org/installer | php

Now tell composer to download it by running the command:, (*5)

``` bash php composer.phar update instinct/types-autoboxing, (*6)



Examples -------- ``` php Bool::create($var); // Defined a new boolean type $var = true; // Assign it a new value if ($var instanceof Bool) { // $var is always a Bool object }

Contributing

Fork the project, create a feature branch, and send us a pull request., (*7)

To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony., (*8)

If you would like to help take a look at the list of issues., (*9)

Contributors

See the list of contributors who participated in this project., (*10)

License

This library is licensed under the MIT License - see the LICENSE file for details, (*11)

Running Tests

You can run the unit tests with the following command:, (*12)

sh php composer.phar install --dev phpunit, (*13)

The Versions

26/06 2014

dev-autoboxer

dev-autoboxer https://github.com/alquerci/php-types-autoboxing/

Wrapping primitive types into objects automatically

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar alquerci

types autoboxing

14/02 2014

dev-master

9999999-dev https://github.com/alquerci/php-types-autoboxing/

Wrapping primitive types into objects automatically

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar alquerci

types autoboxing

14/02 2014

v1.0.0-BETA2

1.0.0.0-beta2 https://github.com/alquerci/php-types-autoboxing/

Wrapping primitive types into objects automatically

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar alquerci

types autoboxing

15/04 2013

v1.0.0-BETA1

1.0.0.0-beta1 https://github.com/alquerci/php-types-autoboxing/

Wrapping primitive types into objects automatically

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Avatar alquerci

types autoboxing