Download the PHP package foolz/inet without Composer
On this page you can find all versions of the php package foolz/inet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor foolz
Package inet
Short Description A PHP implementation of decimal IPs. Converts IPs from presentation to decimal and viceversa. Very useful to store IPs in database as numbers instead of string, in example in a decimal(39,0) column.
License CC-BY-SA-3.0
Homepage http://www.foolz.us
Package inet
Short Description A PHP implementation of decimal IPs. Converts IPs from presentation to decimal and viceversa. Very useful to store IPs in database as numbers instead of string, in example in a decimal(39,0) column.
License CC-BY-SA-3.0
Homepage http://www.foolz.us
Please rate this library. Is it a good library?
Informations about the package inet
Foolz\Inet
This Composer package provides two functions that allow converting between IP Address and IP Decimal. It works for both IPv4 and IPv6.
Based on the answer to "How to convert IPv6 from binary for storage in MySQL?" on StackOverflow by Sander Marechal. Content posted on StackOverflow is under the CC BY-SA 3.0 License.
Requirements
- BCMath
- PHP 5.3+
Usage
Storage on MySQL Databases
You should use a DECIMAL(39,0)
column to store the entire IP Decimal.
All versions of inet with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
ext-bcmath Version *
ext-bcmath Version *
The package foolz/inet contains the following files
Loading the files please wait ....