think.studio/laravel-gdc-info
最新稳定版本:1.1.1
Composer 安装命令:
composer require think.studio/laravel-gdc-info
包简介
GDC info parser
README 文档
README
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
- Create settings table
public function up() { Schema::create( config('gdc-info.tables.gdc_info'), function ( Blueprint $table ) { \GDCInfo\MigrationHelper::defaultColumns($table); } ); }
- 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
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-03