yaroslawww/laravel-gdc-info 问题修复 & 功能扩展

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

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

yaroslawww/laravel-gdc-info

最新稳定版本:1.1.1

Composer 安装命令:

composer require yaroslawww/laravel-gdc-info

包简介

GDC info parser

关键字:

README 文档

README

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

GDC info parser

Installation

Install the package via composer:

composer require think.studio/laravel-gdc-info

Optionally you can publish the config file with:

php artisan vendor:publish --provider="GDCInfo\ServiceProvider" --tag="config"

Installation

  1. Create settings table
public function up() {
    Schema::create( config('gdc-info.tables.gdc_info'), function ( Blueprint $table ) {
        \GDCInfo\MigrationHelper::defaultColumns($table);
    } );
}
  1. Set your model in AppServiceProvider if you need
namespace App\Models;

class GDCInfo extends \GDCInfo\Models\GDCInfo
{
}
public function register()
{
    GDCChecker::useModel(\App\Models\GDCInfo::class);
}

Usage

Direct call (you can use it without model and table):

$gdcInfo = GDCInfoFromHtmlFlow::make()->get('060702');
// or
$gdcInfo = GDCInfoFromHtmlFlow::make()->get(60702);

$gdcInfo->gdc();
$gdcInfo->firstName();
$gdcInfo->lastName();
$gdcInfo->status();
$gdcInfo->registrantType();
$gdcInfo->qualifications();
$gdcInfo->firstRegisteredOn();
$gdcInfo->currentPeriodFrom();
$gdcInfo->additionalInfo();

Using Model:

$gdcInfo = GDCInfo::findOrFetch(60702);

$gdcInfo->getKey();
$gdcInfo->last_name;

Credits

  • Think Studio

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-17