PHPackages                             brandon14/fossabot-commander-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brandon14/fossabot-commander-laravel

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

brandon14/fossabot-commander-laravel
====================================

Library to bridge the brandon14/fossabot-commander library to a Laravel application.

v2.0.1(1y ago)06[2 issues](https://github.com/brandon14/fossabot-commander-laravel/issues)[1 PRs](https://github.com/brandon14/fossabot-commander-laravel/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/brandon14/fossabot-commander-laravel)[ Packagist](https://packagist.org/packages/brandon14/fossabot-commander-laravel)[ Docs](https://github.com/brandon14/fossabot-commander-laravel)[ RSS](/packages/brandon14-fossabot-commander-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (18)Versions (9)Used By (0)

 [![Packagist PHP Version](https://camo.githubusercontent.com/91b7a180c71b93c6edee0448f2b3217c0f843af26e7ca9e9d5ab2594b65fe665/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c2f7068703f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030)](https://packagist.org/packages/brandon14/fossabot-commander-laravel)

 [![GitHub Actions Workflow Status](https://camo.githubusercontent.com/f017c1bece4626f82cff18fbb996c8b81c955f2bbd7aef4479de1d4fc08a7b27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c2f72756e2d74657374732e796d6c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/actions/workflows/run-tests.yml) [![Code Climate maintainability](https://camo.githubusercontent.com/a2d6a31d701462700d03636622b63d1bd7edd6f3e9a0620721e875ccc15c8955/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792d70657263656e746167652f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://codeclimate.com/github/brandon14/fossabot-commander-laravel/maintainability) [![Codecov](https://camo.githubusercontent.com/ac7c97b582834ec8848a867e37814b2abcc7c9d97be0ce90ee3d6652066dba3f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://codecov.io/gh/brandon14/fossabot-commander-laravel) [![GitHub](https://camo.githubusercontent.com/4464a6245283054708da834871e3d0ac29df105522150160d8a075a00ee709a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/blob/main/LICENSE)

 [![GitHub issues](https://camo.githubusercontent.com/32cdc8cc02232c1af602a3dad629ca3f850e04343871342e875cff94ec86b270/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/issues) [![GitHub closed issues](https://camo.githubusercontent.com/b5bdb0b833a9b7e43bd07a82f6e138e03089839809b12b17c2c34d3b2ca342ed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/issues?q=is%3Aissue+is%3Aclosed) [![GitHub pull requests](https://camo.githubusercontent.com/6f4ec977692c0c90bf2d4f72cfb565df27f6afee66f819eeea15872ec18e95a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/pulls) [![GitHub closed pull requests](https://camo.githubusercontent.com/fc77bd12c77b6fe65b837fd7a30f0c2c03b8855201025030012919b8f3d3a484/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722d636c6f7365642f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/pulls?q=is%3Apr+is%3Aclosed)

 [![GitHub release (with filter)](https://camo.githubusercontent.com/a8724554dabe919afd248b5f0b4ea32eccfcfe3f1625c6d52fd8eab12656f26d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/releases) [![GitHub commit activity (branch)](https://camo.githubusercontent.com/9fd87063afc2e1fe719f8b0d3467cc498700b2b6969f514775f2d3c981d4c876/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/commits/main) [![GitHub last commit (by committer)](https://camo.githubusercontent.com/40bfb3b39fdea3f16bb36d0c6c21b4272cd97fa26d3e64a46d86791d6adc380e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6272616e646f6e31342f666f737361626f742d636f6d6d616e6465722d6c61726176656c3f7374796c653d666f722d7468652d62616467652663616368655365636f6e64733d33363030) ](https://github.com/brandon14/fossabot-commander-laravel/commits/main)

brandon14/fossabot-commander-laravel
====================================

[](#brandon14fossabot-commander-laravel)

Source code for [brandon14/fossabot-commander-laravel](https://github.com/brandon14/fossabot-commander-laravel)
---------------------------------------------------------------------------------------------------------------

[](#source-code-for-brandon14fossabot-commander-laravel)

Table of Contents
-----------------

[](#table-of-contents)

1. [Requirements](https://github.com/brandon14/fossabot-commander-laravel#requirements)
2. [Purpose](https://github.com/brandon14/fossabot-commander-laravel#purpose)
3. [Installation](https://github.com/brandon14/fossabot-commander-laravel#installation)
4. [Usage](https://github.com/brandon14/fossabot-commander-laravel#usage)
5. [Standards](https://github.com/brandon14/fossabot-commander-laravel#standards)
6. [Coverage](https://github.com/brandon14/fossabot-commander-laravel#coverage)
7. [Documentation](https://github.com/brandon14/fossabot-commander-laravel#documentation)
8. [Contributing](https://github.com/brandon14/fossabot-commander-laravel#contributing)
9. [Versioning](https://github.com/brandon14/fossabot-commander-laravel#versioning)
10. [Security Vulnerabilities](https://github.com/brandon14/fossabot-commander-laravel#security-vulnerabilities)

Requirements
------------

[](#requirements)

DependencyVersionphp^7.4 || ^8.0brandon14/fossabot-commander^1.0.2guzzlehttp/guzzle^6.5.8 || ^7.4.5illuminate/console^8.0 || ^9.0 || ^10.0 || ^11.0illuminate/support^8.0 || ^9.0 || ^10.0 || ^11.0Purpose
-------

[](#purpose)

This is a simple wrapper for the [fossabot-commander](https://github.com/brandon14/fossabot-commander)package for Laravel. This allows for easy integration into a Laravel project.

This library provides all the bindings for the Laravel IoC container to set up the fossabot-commander library, and also includes a helper function `fossabot_commander()` to get the commander class from the container. It also provides a FossabotCommander facade. The package is bound to the container under the `Brandon14\FossabotCommander\Contracts\FossabotCommander` interface, and also as the alias `fossabot-commander`.

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

[](#installation)

```
composer require brandon14/fossabot-commander-laravel
```

Usage
-----

[](#usage)

You will first need to get the custom API token from the request header. It will be in the `x-fossabot-customapitoken` header.

For a simple command in Laravel:

```
// FooCommand.php
