New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

edbizarro/slacker-iugu

Get information from http://c.iugu.com in your slack
8
Install
composer require edbizarro/slacker-iugu
Latest Version:v0.1.5
PHP:^7.0
Laravel:5 – 13
License:MIT
Last Updated:Oct 23, 2016
Links: GitHub  ·  Packagist
Maintainer: edbizarro

Slacker Iugu - Slack Slash command Iugu handler

Packagist Build Status StyleCI Codacy Badge

Based and inspired by spatie/laravel-slack-slash-command

First of all setup a Slash command and install spatie/laravel-slack-slash-command package into a Laravel app.

Usage

Follow this steps to use this package in your Laravel installation

1. Require it on composer

composer require edbizarro/slacker-iugu

2. Load service provider

You need to update your config/app.php configuration file to register our service provider, adding this lines on providers array:

// config/app.php
'providers' => [
    ...
    Spatie\SlashCommand\SlashCommandServiceProvider::class,
    Edbizarro\Slacker\Iugu\Providers\SlackerIuguServiceProvider::class,
];

Configuration

You need to publish the package configuration file. To do this, run php artisan vendor:publish on terminal. This will publish a slacker-iugu-handler.php file on your configuration folder like this:

<?php

return [
    /*
     * The token provided by iugu.
     */
    'token' => env('IUGU_API_TOKEN'),
    'handlers' => [
        Edbizarro\Slacker\Iugu\Handlers\IuguCustomerHandler::class,
        Edbizarro\Slacker\Iugu\Handlers\IuguSubscriptionHandler::class,
    ],
];

Note that this file uses environment variables, it's a good practice put your secret keys in your .env file adding this lines on it:

IUGU_API_TOKEN="YOUR_KEY"

And you're good to go.

Related Packages

botman/driver-slack

Slack driver for BotMan

280,982 51
jetimob/iugu-sdk-php-laravel

Laravel SDK for Iugu's API

8,929 0
nicolasmahe/laravel-slack-output

Sends a message to Slack when something goes wrong with your Laravel application...

42,980 27
vcoder7/ltools

Laravel helper tools

2,748 1
codegym/laravel-slack-output

Sends a message to Slack when something goes wrong with your Laravel application...

1,201 0

Version History

Version Released PHP License
v0.1.5 ^7.0 MIT
v0.1.4 ^7.0 MIT
v0.1.3 ^7.0 MIT
v0.1.2 ^7.0 MIT
v0.1.1 ^7.0 MIT