This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace UpToYou; | |
/** | |
* Class to consolidate the logic of comparing ip addresses and if they are within a given range. | |
*/ | |
class IpUtils { | |
/** | |
* Network ranges can be specified as: |