Skip to content

nkt/php-scalar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP scalar

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