2017 © Pedro Peláez
 

library jg-service-for-laravel

交管服务平台信息查询接口封装,包括违章信息、驾照查分,此为Laravel扩展包。

image

steve-liuxu/jg-service-for-laravel

交管服务平台信息查询接口封装,包括违章信息、驾照查分,此为Laravel扩展包。

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

JGService-For-Laravel5

交管服务平台信息查询接口封装,包括违章信息、驾照查分。, (*1)


使用注意

  1. 本分支为Laravel5扩展包
  2. 需要开启 php-curl 扩展
  3. 验证码自动识别接口来自易源数据-图形验证码识别

TODO

1. 增加多区域支持

2. 增加违章支持

安装

步骤1. composer

  1. 执行
composer require steve-liuxu/jg-service-for-laravel ~0.8
  1. 执行 composer update 或者 composer install 引入开发包

步骤2. laravel5安装

找到 config/app.php 配置文件中,key为 providers 的数组,在数组中添加服务提供者。, (*2)

    'providers' => [
        // ...
        SteveLiuxu\JGService\JGServiceProvider::class,,
    ]

运行 php artisan vendor:publish 命令,发布配置文件到你的项目中。, (*3)

说明

配置文件 config/JGService-showapi.php 为验证码识别配置信息文件,接口申请地址为易源数据-图形验证码识别, (*4)

使用

使用时首先修改 config/JGService-showapi.php 里的配置项 ```php <?php return [ //appid,在官网的"我的应用"中找到相关值 'showapi_appid' => 'xxxxx',, (*5)

  //app密钥,在官网的"我的应用"中找到相关值
  'showapi_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',

  //验证码识别请求地址
  'showapi_url'=>'http://route.showapi.com/184-2',

];, (*6)

```, (*7)

然后在控制器里实例化类,调用即可 ```php Route::get('/test', function (){ $test = new \steveLiuxu\JGService\JGService();, (*8)

     dd($test->GetScore("xxxx","xxxx","xxx"));

}); ```, (*9)


开源协议

遵循MIT开源协议。, (*10)

The Versions

18/10 2016

dev-master

9999999-dev https://github.com/steve-liuxu/JGService-For-Laravel5

交管服务平台信息查询接口封装,包括违章信息、驾照查分,此为Laravel扩展包。

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel jgservice steveliuxu weizhang jiazhao 交管信息 违章 驾照

18/10 2016

0.8.x-dev

0.8.9999999.9999999-dev https://github.com/steve-liuxu/JGService-For-Laravel5

交管服务平台信息查询接口封装,包括违章信息、驾照查分,此为Laravel扩展包。

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel jgservice steveliuxu weizhang jiazhao 交管信息 违章 驾照

18/10 2016

0.8.5

0.8.5.0 https://github.com/steve-liuxu/JGService-For-Laravel5

交管服务平台信息查询接口封装,包括违章信息、驾照查分,此为Laravel扩展包。

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel jgservice steveliuxu weizhang jiazhao 交管信息 违章 驾照