PHPackages                             redpic/antigate - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. redpic/antigate

ActivePackage[HTTP &amp; Networking](/categories/http)

redpic/antigate
===============

antigate.com API Laravel 5.1 package

0.1(10y ago)1191MITPHP

Since Aug 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/redpic/antigate-laravel)[ Packagist](https://packagist.org/packages/redpic/antigate)[ RSS](/packages/redpic-antigate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (1)Used By (0)

antigate-laravel
================

[](#antigate-laravel)

antigate.com API Laravel 5.1 package

Инструкция
----------

[](#инструкция)

Установите пакет: `composer require redpic/antigate`

Добавьте сервис-провайдер в `config/app.php`:

```
'providers' => [
    // ...
    Redpic\Antigate\AntigateServiceProvider::class,
];
```

Опубликуйте конфиг: `php artisan vendor:publish` и впишите в него токен доступа: `config/antigate.php`

Создайте два слушателя событий:

```
php artisan make:listener test --event CaptchaWasRecognized
php artisan make:listener test --event CaptchaWasNotRecognized

```

Приведите их к виду:

`app/Listeners/CaptchaWasRecognizedListener.php`:

```
