PHP code example of digitalicagroup / redmine-command
1. Go to this page and download the library: Download digitalicagroup/redmine-command library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
digitalicagroup / redmine-command example snippets
/**
* token sent by slack (from your "Slash Commands" integration).
*/
$config->token = "vuLKJlkjdsflkjLKJLKJlkjd";
/**
* URL of the Incoming WebHook slack integration.
*/
$config->slack_webhook_url = "https://hooks.slack.com/services/LKJDFKLJFD/DFDFSFDDSFDS/sdlfkjdlkfjLKJLKJKLJO";
/**
* Slack API authentication token for your team.
*/
$config->slack_api_token = "xoxp-98475983759834-38475984579843-34985793845";
/**
* Base URL of redmine installation.
*/
$config->redmine_url = "https://your/redmine/install";
/**
* Redmine API key.
*/
$config->redmine_api_key = "0d089u4sldkfjfljlksdjffj43099034j";
/**
* Log level threshold. The default is DEBUG.
* If you are done testing or installing in production environment,
* uncomment this line.
*/
//$config->log_level = LogLevel::WARNING;
/**
* logs folder, make sure the invoker have write permission.
*/
$config->log_dir = "/srv/api/redmine-command/logs";
bash
$ php composer.phar roup/redmine-command/index.php .