PHP code example of nguyenanhung / mantis-connector
1. Go to this page and download the library: Download nguyenanhung/mantis-connector 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/ */
nguyenanhung / mantis-connector example snippets
/**
* Project mantis-connector
* Created by PhpStorm
* User: 713uk13m <dev@nguyenanhung.com>
* Copyright: 713uk13m <dev@nguyenanhung.com>
* Date: 2/10/20
* Time: 15:16
*/
ername' => 'hungna',
);
$result = mantis_report($config, 'Tên bug', 'Mô tả chi tiết');
/**
* Project mantis-connector
* Created by PhpStorm
* User: 713uk13m <dev@nguyenanhung.com>
* Copyright: 713uk13m <dev@nguyenanhung.com>
* Date: 2/10/20
* Time: 15:27
*/
ername' => 'hungna',
);
$base = new nguyenanhung\MantisBT\MantisConnector();
$base->setMonitorUrl($config['monitorUrl'])->setMonitorUser($config['monitorUser'])->setMonitorPassword($config['monitorPassword'])->setProjectId($config['monitorProjectId'])->setUsername($config['monitorUsername']);
$result = $base->mantis('Tên bug', 'Mô tả bug');
echo "<pre>";
print_r($result);
echo "</pre>";