Run test with PHP 8.5 (#110)
Recent Commits to ip-lib:main
-
Run test with PHP 8.5 (#110)
-
Add Factory::getRangeFromAddresses() (#109)
Add Factory::getRangeFromAddresses() (#109)
-
Minor changes in README badges
Minor changes in README badges
-
Minor changes in README badges
Minor changes in README badges
-
Minor changes in README badges
Minor changes in README badges
-
Add PHPStan checks (#108)
Add PHPStan checks (#108)
-
Remove unused scrutinizer configuration file
Remove unused scrutinizer configuration file
-
Update php-cs-fixer, simplify tests, remove Scrutinizer (#107)
Update php-cs-fixer, simplify tests, remove Scrutinizer (#107)
-
Let getAddressAtOffset() accept numeric strings (#106)
Let getAddressAtOffset() accept numeric strings (#106) * Add BinaryMath::normalizeIntegerString() * Add BinaryMath::add1ToIntegerString() * Simplify php-cs-fixer calls * Add NumberInChunks * Let getAddressAtOffset() accept numeric strings
-
Add getExactSize() to ranges (#105)
Add getExactSize() to ranges (#105) * Reuse BinaryMath instance * Add BinaryMath::pow2string() * Add RangeInterface::getExactSize() * Use "numeric-string" instead of "string" Co-authored-by: Gabriel Ostrolucký <gadelat@gmail.com>
-
Document IPv4 "long" format (#104)
Document IPv4 "long" format (#104)
-
Minor fix in IPv6::add() (#97)
Minor fix in IPv6::add() (#97)
-
Don't throw an OverflowException in RangeInterface::split() (#96)
Don't throw an OverflowException in RangeInterface::split() (#96)
-
Add AddressInterface::add() (#95)
Add AddressInterface::add() (#95)
-
Add AddressInterface::shift() (#94)
Add AddressInterface::shift() (#94)
-
Add `split` and `getNetworkPrefix` to IP ranges (#93)
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>
-
Check PHP syntax (#92)
Check PHP syntax (#92)
-
Avoid PHP 8.4 deprecation warnings (#91)
Avoid PHP 8.4 deprecation warnings (#91)