Giter Club home page Giter Club logo

lumen-slackin's Introduction

Lumen - Slackin

Join the chat at https://gitter.im/vluzrmos/lumen-slackin

Latest Stable Version Total Downloads License

A Slack Invitator made with Lumen Framework and inspired by rauchg/slackin.

That application uses some of my awesome packages:

Download the source

composer create-project vluzrmos/lumen-slackin

Instalation

Copy .env.example to .env and:

Change the APP_KEY to something random string with max 32 characters.

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

Run

Queue

Start the queue listener:

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.

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

@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:

* * * * *  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.

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:

SLACK_STATUS_ENABLED=false

HTTP Server

Start the http server:

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.

Badge is available

If your need a badge to your slack invitator, just use:

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

Example: Laravel Brasil

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:

  • en
  • pt-br

Mobile Devices

That project uses Twitter Bootstrap 3, and it is compatible on small devices.

Using Lumen Slackin

Your team are using this project? Put your link here:

Note: Consider to send a PR to master branch.

License

DBAD.

lumen-slackin's People

Contributors

gitter-badger avatar vluzrmos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.