danrovito / Laravel-Slack-Invite by danrovito

A Slack user invite service provider for Laravel
2,445
8
3
Package Data
Maintainer Username: danrovito
Maintainer Contact: danrovito@gmail.com (Dan Rovito)
Package Create Date: 2016-09-07
Package Last Update: 2017-07-13
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-24 03:01:46
Package Statistics
Total Downloads: 2,445
Monthly Downloads: 49
Daily Downloads: 0
Total Stars: 8
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Laravel Slack Invite

Latest Stable Version Total Downloads License StyleCI Codeship Status for Darovi/LaravelSlackInvite

Getting started

To get started you must first install the package from composer.

composer require danrovito/laravelslackinvite

Add the following to your .env file

SLACK_TOKEN=YOUR_SLACK_TOKEN  (this token can be generated here `https://api.slack.com/docs/oauth-test-tokens`)
SLACK_HOSTNAME=YOUR_SLACK_NAME (this is the HOSTNAME.slack.com in your slack url)

Usage

To use Slack invite all you have to do is use the following. Supply your users email address in the EMAIL_ADDRESS space.

\Darovi\LaravelSlackInvite\Slack::invite('EMAIL_ADDRESS');

You will receive a json response

{"ok":true}

or

{"ok":false,"error":"already_invited"}

License

Laravel Slack Invite is open-sourced software licensed under the MIT license

Bug Reporting and Feature Requests

Please add as many details as possible regarding submission of issues and feature requests

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.