{"id":22398754,"url":"https://github.com/tappnetwork/nova-select-country-code","last_synced_at":"2025-07-31T13:32:13.002Z","repository":{"id":53512488,"uuid":"312684360","full_name":"TappNetwork/nova-select-country-code","owner":"TappNetwork","description":"Country code select field for Laravel Nova","archived":false,"fork":false,"pushed_at":"2024-05-04T18:41:26.000Z","size":947,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-18T09:59:18.740Z","etag":null,"topics":["code","country","country-code","field","hacktoberfest","laravel","nova","select"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TappNetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-13T21:10:09.000Z","updated_at":"2024-11-07T04:07:25.000Z","dependencies_parsed_at":"2022-09-21T11:11:01.959Z","dependency_job_id":null,"html_url":"https://github.com/TappNetwork/nova-select-country-code","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Fnova-select-country-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Fnova-select-country-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Fnova-select-country-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Fnova-select-country-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TappNetwork","download_url":"https://codeload.github.com/TappNetwork/nova-select-country-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228249352,"owners_count":17891461,"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":["code","country","country-code","field","hacktoberfest","laravel","nova","select"],"created_at":"2024-12-05T07:12:03.950Z","updated_at":"2024-12-05T07:12:04.584Z","avatar_url":"https://github.com/TappNetwork.png","language":"PHP","readme":"# Laravel Nova Country Code Select Field\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tapp/select-country-code.svg?style=flat-square)](https://packagist.org/packages/tapp/select-country-code)\n![Code Style Action Status - Pint](https://github.com/TappNetwork/nova-select-country-code/actions/workflows/pint.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/tapp/select-country-code.svg?style=flat-square)](https://packagist.org/packages/tapp/select-country-code)\n\nA country code select field for Laravel Nova.\n\n## Appearance\n\n### Form\n![select-country-code-form](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form.png)\n![select-country-code-form1](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form1.png)\n\n### Detail\n![select-country-code-detail](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-detail.png)\n\n## Installation\n\nInstall using Composer:\n\n```bash\ncomposer require tapp/select-country-code\n```\n\nPublish the flag icons assets to the public project directory:\n\n```bash\nphp artisan vendor:publish --tag=public --force\n```\n\n## Usage\n\nAdd the field to your resource in the ```fields``` method:\n```php\nuse Tapp\\SelectCountryCode\\SelectCountryCode;\n\nSelectCountryCode::make(__('Country Code')),\n```\n\n### Options\n\n#### iconsDirectory\n\nDefault: ```'/vendor/tapp/nova-select-country-code'```.\n\nIf you want to use your own custom image icons, provide the directory of the images with this option:\n\n```php\nSelectCountryCode::make(__('Country Code'))\n    -\u003eiconsDirectory('/public/path/to/icons'),\n```\n\n#### iconsFormat\n\nDefault: ```'svg'```.\n\nThe image format of the flag icons.\n\n```php\nSelectCountryCode::make(__('Country Code'))\n    -\u003eiconsFormat('png'),\n```\n\n#### options\n\nArray with the options to show on select. The array must contain the associative keys: ```'label'```, ```'country_code'```, and ```'iso_code'```.\n\nDefault: \n```php\n[\n    ['label' =\u003e 'Afghanistan', 'country_code' =\u003e '+93', 'iso_code' =\u003e 'AF'],\n    ['label' =\u003e 'Albania', 'country_code' =\u003e '+355', 'iso_code' =\u003e 'AL'],\n    // ...\n]\n```\n\n```php\nSelectCountryCode::make(__('Country Code'))\n    -\u003eoptions($optionsArray),\n```\n\n## Credits \n\nSVG of the countries' flags by:\n- https://github.com/tabler/tabler\n- https://github.com/hjnilsson/country-flags\n\n## Leveraged package\n\n- [Vue Select](https://vue-select.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Fnova-select-country-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftappnetwork%2Fnova-select-country-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Fnova-select-country-code/lists"}