{"id":13416715,"url":"https://github.com/webpatser/laravel-countries","last_synced_at":"2025-05-14T18:02:05.267Z","repository":{"id":9586595,"uuid":"11504062","full_name":"webpatser/laravel-countries","owner":"webpatser","description":"Laravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.","archived":false,"fork":false,"pushed_at":"2023-09-28T09:40:39.000Z","size":519,"stargazers_count":755,"open_issues_count":50,"forks_count":226,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-05-14T18:01:59.680Z","etag":null,"topics":[],"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/webpatser.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-07-18T13:55:36.000Z","updated_at":"2025-05-01T09:53:14.000Z","dependencies_parsed_at":"2024-01-12T10:26:07.786Z","dependency_job_id":"31844562-1aab-40a5-bb58-c4f2b12f2a9f","html_url":"https://github.com/webpatser/laravel-countries","commit_stats":{"total_commits":81,"total_committers":31,"mean_commits":"2.6129032258064515","dds":0.8024691358024691,"last_synced_commit":"9d0cd970c764197a9966e4e864eba6253bbafa28"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpatser%2Flaravel-countries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpatser%2Flaravel-countries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpatser%2Flaravel-countries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpatser%2Flaravel-countries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpatser","download_url":"https://codeload.github.com/webpatser/laravel-countries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198453,"owners_count":22030964,"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":[],"created_at":"2024-07-30T22:00:20.723Z","updated_at":"2025-05-14T18:02:05.208Z","avatar_url":"https://github.com/webpatser.png","language":"PHP","funding_links":[],"categories":["LARAVEL","国际化和本地化(Internationalisation and Localisation)","Internationalization"],"sub_categories":["Packages"],"readme":"# Laravel Countries\n\n[![Total Downloads](https://poser.pugx.org/webpatser/laravel-countries/downloads.svg)](https://packagist.org/packages/webpatser/laravel-countries)\n[![Latest Stable Version](https://poser.pugx.org/webpatser/laravel-countries/v/stable.svg)](https://packagist.org/packages/webpatser/laravel-countries)\n[![Latest Unstable Version](https://poser.pugx.org/webpatser/laravel-countries/v/unstable.svg)](https://packagist.org/packages/webpatser/laravel-countries)\n\nLaravel Countries is a bundle for Laravel, providing Almost ISO 3166_2, 3166_3, currency, Capital and more for all countries.\n\n**Please note that version 1.4 is Laravel 5 only, older versions of Laravel should use version 1.3.4 instead**\n\n## Installation\n\nAdd `webpatser/laravel-countries` to `composer.json`.\n\n    \"webpatser/laravel-countries\": \"dev-master\"\n    \nRun `composer update` to pull down the latest version of Country List.\n\nEdit `app/config/app.php` and add the `provider` and `filter`\n\n    'providers' =\u003e [\n        'Webpatser\\Countries\\CountriesServiceProvider',\n    ]\n\nNow add the alias.\n\n    'aliases' =\u003e [\n        'Countries' =\u003e 'Webpatser\\Countries\\CountriesFacade',\n    ]\n    \n\n## Model\n\nYou can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name `countries` suits you, leave it. Otherwise run the following command\n\n    $ php artisan vendor:publish\n\nNext generate the migration file:\n\n    $ php artisan countries:migration\n    \nIt will generate the `\u003ctimestamp\u003e_setup_countries_table.php` migration and the `CountriesSeeder.php` seeder. To make sure the data is seeded insert the following code in the `seeds/DatabaseSeeder.php`\n\n    //Seed the countries\n    $this-\u003ecall('CountriesSeeder');\n    $this-\u003ecommand-\u003einfo('Seeded the countries!'); \n\nYou may now run it with the artisan migrate command:\n\n    $ php artisan migrate --seed\n    \nAfter running this command the filled countries table will be available\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpatser%2Flaravel-countries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpatser%2Flaravel-countries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpatser%2Flaravel-countries/lists"}