https://github.com/nguyenanhung/mantis-connector
Mantis Bug Tracker Connector
https://github.com/nguyenanhung/mantis-connector
bug issue-tracker mantis monitor tracking
Last synced: about 1 year ago
JSON representation
Mantis Bug Tracker Connector
- Host: GitHub
- URL: https://github.com/nguyenanhung/mantis-connector
- Owner: nguyenanhung
- License: gpl-3.0
- Created: 2018-11-11T07:05:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T15:56:42.000Z (over 3 years ago)
- Last Synced: 2025-03-27T14:57:25.693Z (about 1 year ago)
- Topics: bug, issue-tracker, mantis, monitor, tracking
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
[](https://packagist.org/packages/nguyenanhung/mantis-connector)
# Mantis Bug Tracker Connector
## Version
- [x] V1.x support all PHP version `>=5.4`
- [x] V2.x support all PHP version `>=7.0`
## Cài packages vào trong repositories
```shell
composer require nguyenanhung/mantis-connector
```
## Hướng dẫn sử dụng
### Quick Function
Tham khảo đoạn code bên dưới
```php
* Copyright: 713uk13m
* Date: 2/10/20
* Time: 15:16
*/
require_once __DIR__ . '/vendor/autoload.php';
// Cấu hình Monitor
$config = array(
'monitorUrl' => 'xxx',
'monitorUser' => 'xxx',
'monitorPassword' => 'xxx',
'monitorProjectId' => 1,
'monitorUsername' => 'hungna',
);
$result = mantis_report($config, 'Tên bug', 'Mô tả chi tiết');
```
### With Class
Tham khảo đoạn code bên dưới
```php
* Copyright: 713uk13m
* Date: 2/10/20
* Time: 15:27
*/
require_once __DIR__ . '/vendor/autoload.php';
// Cấu hình Monitor
$config = array(
'monitorUrl' => 'xxx',
'monitorUser' => 'xxx',
'monitorPassword' => 'xxx',
'monitorProjectId' => 1,
'monitorUsername' => '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 "
";
print_r($result);
echo "
";
```
## Liên hệ
| Name | Email | Skype | Facebook |
|-------------|----------------------|------------------|---------------|
| Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |