{"id":18555668,"url":"https://github.com/n2ref/iptools","last_synced_at":"2025-07-18T16:32:55.465Z","repository":{"id":72438909,"uuid":"73467786","full_name":"n2ref/iptools","owner":"n2ref","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-11T10:33:56.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T11:28:32.776Z","etag":null,"topics":["ipv4","ipv6","library","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n2ref.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-11-11T10:18:11.000Z","updated_at":"2017-04-18T21:06:29.000Z","dependencies_parsed_at":"2023-09-17T14:19:34.335Z","dependency_job_id":null,"html_url":"https://github.com/n2ref/iptools","commit_stats":null,"previous_names":["n2ref/iptools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fiptools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fiptools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fiptools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n2ref%2Fiptools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n2ref","download_url":"https://codeload.github.com/n2ref/iptools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346626,"owners_count":22055809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipv4","ipv6","library","php"],"created_at":"2024-11-06T21:27:31.632Z","updated_at":"2025-05-15T13:10:20.955Z","avatar_url":"https://github.com/n2ref.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP tools\nСlass to work with IPv4 and IPv6 addresses\n\n## Methods IPv4\n- **ip4_mask_to_prefix($mask)** - Convert mask to prefix subnet\n- **ip4_prefix_to_mask($prefix)** - Convert prefix to mask subnet\n- **ip4_to_range($addr, $mask)** - Convert ip subnet to ip start and ip end\n- **ip4_validate($addr)** - Validate ipv4 address\n- **ip4_to_int($addr)** - Convert ipv4 to int\n- **int_to_ip4($int_addr)** - Convert int to ipv4\n\n## Methods IPv6\n- **ip6_expand($addr)** - Expand an IPv6 Address\n- **ip6_compress($addr)** - Compress an IPv6 Address\n- **ip6_prefix_to_mask($prefix)** - Generate an IPv6 mask from prefix notation\n- **ip6_mask_to_prefix($mask)** - Generate an IPv6 prefix from mask notation\n- **ip6_to_range($addr, $mask)** - Convert an IPv6 address and prefix size to an address range for the network.\n- **ip6_validate($addr)** - Validate ipv6 address\n- **ip6_to_numeric($addr)** - Convert ipv6 to numeric\n- **ip6_to_bin($addr)** - Convert ipv6 to bin\n- **ip6_to_split_int($addr)** - Convert an IPv6 address to two 64-bit integers.\n- **split_int_to_ip6($val)** - Convert two 64-bit integer values into an IPv6 address\n- **numeric_to_ip6($dec)** - Convert numeric to ipv6\n- **bin_to_ip6($bin)** - Convert bin to ipv6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fiptools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn2ref%2Fiptools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn2ref%2Fiptools/lists"}