danrovito / laravelslackinvite
A Slack user invite service provider for Laravel
Installs: 2 469
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.3
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- laravel/framework: 5.3.*
- phpunit/phpunit: 4.8.*
This package is auto-updated.
Last update: 2024-11-29 05:09:39 UTC
README
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.