2017 © Pedro Peláez
 

project lumen-slackin

Lumen Slack Invitator.

image

vluzrmos/lumen-slackin

Lumen Slack Invitator.

  • Saturday, December 3, 2016
  • by vluzrmos
  • Repository
  • 3 Watchers
  • 56 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 2 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

Lumen - Slackin

Join the chat at https://gitter.im/vluzrmos/lumen-slackin, (*1)

Latest Stable Version Total Downloads License, (*2)

A Slack Invitator made with Lumen Framework and inspired by rauchg/slackin., (*3)

That application uses some of my awesome packages:, (*4)

Download the source

composer create-project vluzrmos/lumen-slackin

Installation

Copy .env.example to .env and:, (*5)

Change the APP_KEY to something random string with max 32 characters., (*6)

Change the SLACK_TOKEN to the token of your user on slack team, with admin privilegies, you can get it on Slack Web API., (*7)

Run

Queue

Start the queue listener:, (*8)

php artisan queue:listen --timeout=240 1>> /dev/null 2>&1 &

That will start the queue listener in background on *nix computers, to stop that you need to know how to kill a job on your system., (*9)

Its hight recomended run the queue on system startup, on linux you should add the following lines to your crontab:, (*10)

@reboot php /path/to/that/project/artisan queue:listen --timeout=240 1>> /dev/null 2>&1

Scheduled Tasks (Optional)

You may also need to add that command to your cronjob, that will update the users status on every minute:, (*11)

* * * * *  php /path/to/that/project/artisan schedule:run 1>> /dev/null 2>&1

That will make your queue run in background and ignoring error messages., (*12)

Note: If you do not want to use that feature, you just need to set the environment variable SLACK_STATUS_ENABLED to false on your .env file, that will hide the message about users active (online/total) of your team on the homepage:, (*13)

SLACK_STATUS_ENABLED=false

HTTP Server

Start the http server:, (*14)

php artisan serve

By default, artisan serve starts on port 8000, if you want to modify it, just starts it by passing --port=NUMBER or just make a VirtualHost on your server (Apache or Nginx) with DocumentRoot on /path/to/that/project/public/ path., (*15)

Badge is available

If your need a badge to your slack invitator, just use:, (*16)

<img src="http://your-domain/badge.svg" />

Example: Laravel Brasil, (*17)

Multi-Language Support

By default the system will try to detect if the browser language is available on resources/lang, if available will setup. Available languages:, (*18)

  • English - en
  • French - fr_FR
  • Portuguese Brazil - pt_BR
  • German - de_DE

Mobile Devices

That project uses Twitter Bootstrap 3, and it is compatible on small devices., (*19)

Using Lumen Slackin

Your team are using this project? Put your link here:, (*20)

Note: Consider to send a PR to master branch., (*21)

License

DBAD., (*22)

The Versions

30/06 2015