hnhdigital-os/laravel-datasets 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hnhdigital-os/laravel-datasets

Composer 安装命令:

composer require hnhdigital-os/laravel-datasets

包简介

Provides console commands, models and migration scripts to syncronize datasets.

README 文档

README

   ___        _                     _
  /   \ __ _ | |_  __ _  ___   ___ | |_  ___ 
 / /\ // _` || __|/ _` |/ __| / _ \| __|/ __|
/ /_//| (_| || |_| (_| |\__ \|  __/| |_ \__ \
/___,'  \__,_| \__|\__,_||___/ \___| \__||___/

Provides console commands, models and migration scripts to syncronize datasets into your applications database. Datasets are defined by array based configuration whilst advanced manipulation or data retrieval can be done through inline closures.

Latest Stable Version Total Downloads Latest Unstable Version Built for Laravel License

Build Status StyleCI Test Coverage Issue Count Code Climate

This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Install

Via composer:

$ composer require hnhdigital-os/laravel-datasets ~1.0

This package's service provider will autoload from Laravel 5.5.

To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:

    'providers' => [
        ...
        HnhDigital\Datasets\ServiceProvider::class,
        ...
    ];

Available datasets

DATA.OKFN Collection (hnhdigital-os/laravel-datasets-okfn)

NOTE: This collection is included by default when you install this package.

  • Country Codes
  • Country Population
  • Country Population (current)
  • Language Codes

Australia Collection (hnhdigital-os/laravel-datasets-australia)

  • Banks
  • BSB
  • Postcodes

Need a dataset? Request it, Pull Request it, or build it. Use the DATA.OKFN as a template.

If you do setup your own collection, please let us know so that we can put it on the official list.

Usage

List

$ php artisan datasets:list

Lists all the available dataset collections available to be installed.

Install

$ php artisan datasets:install {dataset}

Installs the specified dataset. This will create the table in the database and do an initial sync of the data.

Migrate

$ php artisan datasets:migrate {dataset}

Setup the table in the database. This will create the migration file in the right spot and add to the migrations table.

Use this console command when scheduling dataset update.

Sync

$ php artisan datasets:sync {dataset}

Downloads the data and insert/updates the existing records.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

  • 总下载量: 104
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固