
Add `split` and `getNetworkPrefix` to IP ranges (#93)
* [feat] add method split to range ips, to convert range smaller range
* [refactor] change split method to array
* [style]
* [refactor] delete interface split
* [test] add test
* [style]
* [test] php 5.3, 5.4, 5.5 compatibility
* Describe the type of the result of the split method
* Be sure that we receive an int as the argument of the split method
* Always run all tests
* Fix and simplify tests
* Use Coveralls only for the mlocati's repo
* Simplify "if" statements
* Document that split() can throw a \RuntimeException
* Optimization + accept a network prefix that's the same as the range's one
* Use OutOfBoundsException if $networkPrefix is invalid
* Check maximum range sizes for 32-bit systems
* Fix running Coveralls
* [feat] handle pattern range and update DocBlock
* [fix] move split method to single class
* [fix] fix class pattern
* [chore] update return type
* [test] add single test and pattern test
* [style] add readme
* [style]
* Add getNetworkPrefix() to RangeInterface
This implies checking $networkPrefix for Single::split() too, without efforts
* Add $forceSubnet parameter, test overflow for 64-bit systems too
* Fix coding style
* Improve documentation about the split() method
* Add @since to split()
---------
Co-authored-by: Michele Locati <michele@locati.it>