prime-kit/laravel-country-dataset-importer

A Laravel package to import geographical datasets.

v0.0.1 2024-10-16 11:29 UTC

This package is auto-updated.

Last update: 2024-10-16 12:29:21 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

The Laravel Country Dataset Importer package provides console commands to seamlessly import and manage country-related datasets within your Laravel application. It leverages the data from the widely-used dr5hn/countries-states-cities-database GitHub repository.

Installation

You can install the package via composer:

composer require prime-kit/laravel-country-dataset-importer

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-country-dataset-importer-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-country-dataset-importer-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-country-dataset-importer-views"

Usage

$laravelCountryDatasetImporter = new PrimeKit\LaravelCountryDatasetImporter();
echo $laravelCountryDatasetImporter->echoPhrase('Hello, PrimeKit!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.