markrogoyski / ipv4-subnet-calculator-php

Network calculator for subnet mask and other classless (CIDR) network information.
MIT License
168 stars 42 forks source link

Additional methods #5

Open decadence opened 7 years ago

decadence commented 7 years ago

Also would be nice to have:

markrogoyski commented 7 years ago

Hi, Thanks for the suggestions.

The check-if-IP-in-this-subnet feature is straightforward. I will put that on my list of things to implement after the other outstanding issues are implemented.

As for the reverse lookup, that would need to be a static method or something. It would not make much sense to have that as an object method on a particular SubnetCalculator object.

decadence commented 7 years ago

Ok thanks. Will wait for that.

markrogoyski commented 5 years ago

Hi @decadence,

The is IP address in subnet feature has been implemented in Version 3.1.0.

Apologies that it took a year to get around to implementing this. I will get back to you on the reverse lookup at a later date.

decadence commented 5 years ago

@markrogoyski thanks anyway!