{"id":13828140,"url":"https://github.com/laravel-validation-rules/country-codes","last_synced_at":"2025-06-19T06:33:15.853Z","repository":{"id":25037332,"uuid":"103029506","full_name":"laravel-validation-rules/country-codes","owner":"laravel-validation-rules","description":"Validates 2 \u0026 3 character country codes.","archived":false,"fork":false,"pushed_at":"2024-07-26T06:27:22.000Z","size":136,"stargazers_count":31,"open_issues_count":2,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-16T17:20:25.967Z","etag":null,"topics":["country-codes","laravel","php","validation"],"latest_commit_sha":null,"homepage":"","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-10T12:58:31.000Z","updated_at":"2024-07-26T06:27:26.000Z","dependencies_parsed_at":"2024-01-18T05:16:31.989Z","dependency_job_id":"a6ef36e2-e3f6-4a57-8b70-8f00afb63045","html_url":"https://github.com/laravel-validation-rules/country-codes","commit_stats":{"total_commits":19,"total_committers":9,"mean_commits":2.111111111111111,"dds":0.631578947368421,"last_synced_commit":"3888e9f1772a84aae2fdbb5a3678a2719edb692b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/laravel-validation-rules/country-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fcountry-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fcountry-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fcountry-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fcountry-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laravel-validation-rules","download_url":"https://codeload.github.com/laravel-validation-rules/country-codes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laravel-validation-rules%2Fcountry-codes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260701895,"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":["country-codes","laravel","php","validation"],"created_at":"2024-08-04T09:02:33.926Z","updated_at":"2025-06-19T06:33:10.836Z","avatar_url":"https://github.com/laravel-validation-rules.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Country Codes\n\nValidates 2 \u0026 3 character country codes.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/laravel-validation-rules/country-codes/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/laravel-validation-rules/country-codes/CI?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/laravel-validation-rules/country-codes/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/laravel-validation-rules/country-codes.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\ncomposer require laravel-validation-rules/country-codes\n```\n\n## Usage\n\nValidate a 2 character country code.\n\n```php\nuse LVR\\CountryCode\\Two;\n\n$request-\u003evalidate([\n    'country' =\u003e ['required', new Two],\n]);\n```\n\nValidate a 3 character country code.\n\n```php\nuse LVR\\CountryCode\\Three;\n\n$request-\u003evalidate([\n    'country' =\u003e ['required', new Three],\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fcountry-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravel-validation-rules%2Fcountry-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravel-validation-rules%2Fcountry-codes/lists"}