Recent Commits to ip-lib:main

  • 04/02/2025 14:42

    Minor fix in IPv6::add() (#97)

    Minor fix in IPv6::add() (#97)
  • 04/02/2025 14:30

    Don't throw an OverflowException in RangeInterface::split() (#96)

    Don't throw an OverflowException in RangeInterface::split() (#96)
  • 04/02/2025 13:45

    Add AddressInterface::add() (#95)

    Add AddressInterface::add() (#95)
  • 04/02/2025 11:06

    Add AddressInterface::shift() (#94)

    Add AddressInterface::shift() (#94)
  • 04/02/2025 5:16

    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>

Log in