PHPackages                             pingcheng/slack-slash-command - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pingcheng/slack-slash-command

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pingcheng/slack-slash-command
=============================

Laravel slack slash command plugin

0.0.6(7y ago)2189MITPHPPHP &gt;=5.6

Since Dec 27Pushed 7y agoCompare

[ Source](https://github.com/pingcheng/slack-slash-command)[ Packagist](https://packagist.org/packages/pingcheng/slack-slash-command)[ Docs](https://github.com/pingcheng/slack-slash-command)[ RSS](/packages/pingcheng-slack-slash-command/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (8)Used By (0)

 [![](https://raw.githubusercontent.com/pingcheng/slack-slash-command/gh-pages/images/logo.png)](https://raw.githubusercontent.com/pingcheng/slack-slash-command/gh-pages/images/logo.png)

 [![](https://camo.githubusercontent.com/81b026049b55c5cea85e075296a7fd8c93085a56a94f1ad2b1c4dba81ba0f3f3/68747470733a2f2f7472617669732d63692e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/81b026049b55c5cea85e075296a7fd8c93085a56a94f1ad2b1c4dba81ba0f3f3/68747470733a2f2f7472617669732d63692e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642e7376673f6272616e63683d6d6173746572) [![Coverage Status](https://camo.githubusercontent.com/5c373183defcb03a0132b27cbad511d878b077d4f78c40748b3532b57b6b1cbd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f62616467652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/5c373183defcb03a0132b27cbad511d878b077d4f78c40748b3532b57b6b1cbd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f62616467652e7376673f6272616e63683d6d6173746572) [![](https://camo.githubusercontent.com/563f58e71e67913e629948859ef0465cf8fca756411c64d147bf892d3045195c/68747470733a2f2f706f7365722e707567782e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f762f737461626c65)](https://camo.githubusercontent.com/563f58e71e67913e629948859ef0465cf8fca756411c64d147bf892d3045195c/68747470733a2f2f706f7365722e707567782e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f762f737461626c65) [![](https://camo.githubusercontent.com/757fed4ca4d2dd38d52da114379d45ea7db4fa3603cbd553d9d87f78aca3d670/68747470733a2f2f706f7365722e707567782e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f6c6963656e7365)](https://camo.githubusercontent.com/757fed4ca4d2dd38d52da114379d45ea7db4fa3603cbd553d9d87f78aca3d670/68747470733a2f2f706f7365722e707567782e6f72672f70696e676368656e672f736c61636b2d736c6173682d636f6d6d616e642f6c6963656e7365)

Introduction
------------

[](#introduction)

Slack Slash Command is a Laravel package that helps developer integrate the slash command to their Laravel applications. For more information about Slack slash command, please visit: .

Installation
------------

[](#installation)

1. Slach Slash Command recommends using composer to handling the package control, use the following command to add this package to your project

    ```
    composer require pingcheng/slack-slash-command
    ```
2. Add service provider to `config/app.php`

    ```
    PingCheng\SlackSlashCommand\SlackSlashCommandServiceProvider::class,

    ```
3. Publish config file

    ```
    php artisan vendor:publish --provider="PingCheng\SlackSlashCommand\SlackSlashCommandServiceProvider" --tag=config
    ```
4. Define your `.env`

    ```
    SLACK_SIGNING_SECRET=*YOUR SLACK APP SIGNING SECRET*
    ```

Your first slash command
------------------------

[](#your-first-slash-command)

1. Create your command extends from `PingCheng\SlackSlashCommand\SlackSlashCommand`

    ```
