PHPackages                             steve-liuxu/jg-service-for-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. steve-liuxu/jg-service-for-laravel

ActiveLibrary[API Development](/categories/api)

steve-liuxu/jg-service-for-laravel
==================================

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

0.8.5(9y ago)1201MITPHPPHP &gt;=5.3.0

Since Oct 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/steve-liuxu/JGService-For-Laravel5)[ Packagist](https://packagist.org/packages/steve-liuxu/jg-service-for-laravel)[ Docs](https://github.com/steve-liuxu/JGService-For-Laravel5)[ RSS](/packages/steve-liuxu-jg-service-for-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

JGService-For-Laravel5
======================

[](#jgservice-for-laravel5)

交管服务平台信息查询接口封装，包括违章信息、驾照查分。

---

\##使用注意

> 1. 本分支为Laravel5扩展包
> 2. 需要开启 php-curl 扩展
> 3. 验证码自动识别接口来自[易源数据-图形验证码识别](https://www.showapi.com/api/lookPoint/184)

---

TODO
----

[](#todo)

```
1. 增加多区域支持

2. 增加违章支持

```

---

安装
--

[](#安装)

\####步骤1. composer

1. 执行

```
composer require steve-liuxu/jg-service-for-laravel ~0.8
```

2. 执行 `composer update` 或者 `composer install` 引入开发包

\####步骤2. laravel5安装 找到 `config/app.php` 配置文件中，key为 `providers` 的数组，在数组中添加服务提供者。

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

运行 `php artisan vendor:publish` 命令，发布配置文件到你的项目中。

#### 说明

[](#说明)

配置文件 `config/JGService-showapi.php` 为验证码识别配置信息文件，接口申请地址为[易源数据-图形验证码识别](https://www.showapi.com/api/lookPoint/184)

#### 使用

[](#使用)

使用时首先修改 `config/JGService-showapi.php` 里的配置项

```
