nkt/scalar

Methods for PHP scalars

0.1.0 2014-11-24 23:40 UTC

This package is auto-updated.

Last update: 2024-11-04 12:43:57 UTC


README

Build Status

Methods for PHP scalars.

Installation

Install great @nikic's extension that allows to use methods for scalar objects.

git clone git://github.com/nikic/scalar_objects.git
cd scalar_objects
phpize
./configure
make
sudo make install

Then add nkt/scalar into your composer.json. That's it!

IDE

PHPStorm/IDEA recognize scalars as classes (int, string, etc.) so I've added stubs, that provides simple code completion for this library. Unfortunately array is a keyword in grammars, so there is no completion for it.

It's awesome!

License

MIT