Giter Club home page Giter Club logo

mantis-connector's Introduction

Latest Stable Version Latest Unstable Version Total Downloads License Monthly Downloads Daily Downloads composer.lock

Mantis Bug Tracker Connector

Version

  • V1.x support all PHP version >=5.4
  • V2.x support all PHP version >=7.0

Cài packages vào trong repositories

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
/**
 * Project mantis-connector
 * Created by PhpStorm
 * User: 713uk13m <[email protected]>
 * Copyright: 713uk13m <[email protected]>
 * 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
/**
 * Project mantis-connector
 * Created by PhpStorm
 * User: 713uk13m <[email protected]>
 * Copyright: 713uk13m <[email protected]>
 * 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 "<pre>";
print_r($result);
echo "</pre>";

Liên hệ

Name Email Skype Facebook
Hung Nguyen [email protected] nguyenanhung5891 @nguyenanhung

mantis-connector's People

Contributors

hungnguyenhp avatar nguyenanhung avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.