Book Image

Redmine Cookbook

By : Shamasis Bhattacharya
Book Image

Redmine Cookbook

By: Shamasis Bhattacharya

Overview of this book

In a variety of online project management tools, Redmine markets itself as offering flexibility. Choosing the right management tool can mean the difference between the success and failure of a project. Flexible project management tools bend themselves to fit your needs, whether that’s communication regarding a simple project, or collaboration, or more complex project methodology such as SCRUM, or an issue-code relationship, or the need of different methodology for your project. Whether you are project manager or system administrator, this book provides valuable recipes to get the best possible performance out of your team, organization, infrastructure, and Redmine itself. Through a series of carefully crafted recipes covering the nitty-gritty of Redmine, you’ll be guided through the installation of Redmine, as well as how to fine-tune and customize your Redmine installation. Finally, we walk you through integrating Redmine with other softwares and databases like Tortoise SVN and Visual Studio and troubleshooting Redmine.
Table of Contents (17 chapters)
Redmine Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Using the Redmine REST API with PHP


The REST API is widely used by third-party applications. This recipe teaches you how to use a basic PHP application that connects to Redmine. For this example, we are going to create a sample app that submits issue to a project. Such applications can be used, for example, on website contact forms, and initiate a support or CRM request.

Getting ready

Before you begin, research ready-made examples and libraries that you can use in your project.

This recipe assumes that you know either PHP, HTML or C# (Windows forms).

How to do it…

One of Redmine's PHP libraries that updates often is kbsali's library, which can be forked or downloaded from https://github.com/kbsali/php-redmine-api.

To create your first Redmine app, perform the following steps:

  1. In your www-root, create a folder called phprmtest (short for PHP Redmine test).

  2. Download and extract php-redmine-api library to phprmtest .

  3. Create a file called test.php.

  4. Paste the following contents, replacing the values in...