Skip to content

urigoren/php_slacktools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Php Slack Tools

php functions for common slack integrations

Main functions:

  1. slack() - send a messagge to che slack channel
  2. slack_mails() - checks emails and sends the new ones to the slack channel

Use from PHP

  1. Clone the repository
  2. Update config.json to your slack channel's webhook, and imap server (is using slack_mails)
  3. Include "slack_tools.php" in your project

Set up a mail checker slack bot:

  1. Run printf "<?php\ninclude 'slack_tools.php';\nslack_mails();" > mailbot.php
  2. Run crontab -e to start a new cronjob
  3. Add */5 * * * * php -c mailbot.php to check for mails every 5 minutes
  4. Exit and save

About

php functions for common slack integrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages