{"id":13828137,"url":"https://github.com/laravel-validation-rules/ip","last_synced_at":"2025-06-19T06:33:14.841Z","repository":{"id":45242063,"uuid":"102982850","full_name":"laravel-validation-rules/ip","owner":"laravel-validation-rules","description":"Validate if an ip address is public or private.","archived":false,"fork":false,"pushed_at":"2021-12-28T16:43:53.000Z","size":74,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-05T16:04:21.986Z","etag":null,"topics":["ip","laravel","rule","validation"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laravel-validation-rules.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}},"created_at":"2017-09-09T20:22:46.000Z","updated_at":"2025-04-17T19:19:33.000Z","dependencies_parsed_at":"2022-09-09T22:51:02.004Z","dependency_job_id":null,"html_url":"https://github.com/laravel-validation-rules/ip","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/laravel-validation-rules/ip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-validation-rules","download_url":"https://codeload.github.com/laravel-validation-rules/ip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260701849,"owners_count":23049140,"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":["ip","laravel","rule","validation"],"created_at":"2024-08-04T09:02:33.837Z","updated_at":"2025-06-19T06:33:09.825Z","avatar_url":"https://github.com/laravel-validation-rules.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# IP\n\nValidates an ip address is either public or private. Supports ipv4 \u0026 ipv6.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/laravel-validation-rules/ip\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/laravel-validation-rules/ip.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://scrutinizer-ci.com/g/laravel-validation-rules/ip/code-structure/master/code-coverage\"\u003e\n    \u003cimg src=\"https://img.shields.io/scrutinizer/coverage/g/laravel-validation-rules/ip.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://scrutinizer-ci.com/g/laravel-validation-rules/ip\"\u003e\n    \u003cimg src=\"https://img.shields.io/scrutinizer/g/laravel-validation-rules/ip.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/laravel-validation-rules/ip/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/laravel-validation-rules/ip.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\ncomposer require laravel-validation-rules/ip\n```\n\n## Usage\n\nValidate an ip address is a public address.\n\n```php\nuse LVR\\IP\\PublicAddress;\n\n$request-\u003evalidate([\n    'ip' =\u003e ['required', new PublicAddress],\n]);\n```\n\nValidate an ip address is a private address.\n\n```php\nuse LVR\\IP\\PrivateAddress;\n\n$request-\u003evalidate([\n    'ip' =\u003e ['required', new PrivateAddress],\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-validation-rules%2Fip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fip/lists"}