slackcamp
slackcamp copied to clipboard
Post Basecamp events to Slack channels
slackcamp
slackcamp is a simple cron job written in PHP which finds new activity from Basecamp and posts it to a specified Slack channel.
Requirements
Configuration on Slack
1. Choose a team you want to connect with Basecamp
This is the team you want to link with your Basecamp account
2. Configure Integrations
3. Incoming Webhooks
4. Set up webhook
5. Integration complete
Installation
- Clone the repository.
- Run Composer Install
php composer.phar install
. - Copy
config.default.php
toconfig.php
and modify the settings. - Set up a cron job to run:
$ crontab -e
# run slackcamp, send basecamp activity to slack
*/1 * * * * php /slackcamp/slackcamp.php
Notes
slackcamp needs to be able to write to a file named last_run_date.txt
within it's directory. This is so that when we don't get duplicate events from Basecamp.
slackcamp also relies on the accuracy of PHP's date()
function. If the server time is inaccurate, you may receive duplicate (or missing) messages.
Thanks
netvlies / basecamp-php - PHP Implementation of the all new Basecamp API