2017 © Pedro Peláez
 

library phpproject

PHPProject - Read, Create and Write Project Management documents in PHP

image

phpoffice/phpproject

PHPProject - Read, Create and Write Project Management documents in PHP

  • Saturday, June 4, 2016
  • by PHPOffice
  • Repository
  • 29 Watchers
  • 139 Stars
  • 583 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 67 Forks
  • 2 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

PHPProject

Latest Stable Version Build Status Code Quality Code Coverage Total Downloads License, (*1)

PHPProject is a library written in pure PHP that provides a set of classes to write to different project management file formats, i.e. Microsoft MSProjectExchange (MPX) or GanttProject (GAN). PHPProject is an open source project licensed under the terms of LGPL version 3. PHPProject is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about PHPProject by reading the Developers' Documentation and the API Documentation., (*2)

Read more about PHPProject:, (*3)

Features

  • Create an in-memory project management representation
  • Set file meta data (author, title, description, etc)
  • Add resources from scratch or from existing one
  • Add tasks from scratch or from existing one
  • Output to different file formats: MSProjectExchange (.mpx), GanttProject (.gan)
  • ... and lots of other things!

Requirements

PHPProject requires the following:, (*4)

Installation

It is recommended that you install the PHPProject library through composer. To do so, add the following lines to your composer.json., (*5)

{
    "require": {
       "phpoffice/phpproject": "dev-master"
    }
}

Alternatively, you can download the latest release from the releases page. In this case, you will have to register the autoloader. Register autoloading is required only if you do not use composer in your project., (*6)

require_once 'path/to/PhpProject/src/PhpProject/Autoloader.php';
\PhpOffice\PhpProject\Autoloader::register();

Getting started

The following is a basic usage example of the PHPProject library., (*7)

require_once 'src/PhpProject/Autoloader.php';
\PhpOffice\PhpProject\Autoloader::register();

$objPHPProject = new PhpProject();$objPHPProject = new PhpProject();

// Create resource
$objRes1 = $objPHPProject->createResource();
$objRes1->setTitle('UserBoy');

// Create a task
$objTask1 = $objPHPProject->createTask();
$objTask1->setName('Start of the project');
$objTask1->setStartDate('02-01-2012');
$objTask1->setEndDate('03-01-2012');
$objTask1->setProgress(0.5);
$objTask1->addResource($objRes1);

$oWriterGAN = IOFactory::createWriter($objPHPPowerPoint, 'GanttProject');
$oWriterGAN->save(__DIR__ . "/sample.gan");

More examples are provided in the samples folder. You can also read the Developers' Documentation and the API Documentation for more details., (*8)

Contributing

We welcome everyone to contribute to PHPProject. Below are some of the things that you can do to contribute:, (*9)

The Versions

04/06 2016

dev-develop

dev-develop http://phpoffice.github.io

PHPProject - Read, Create and Write Project Management documents in PHP

  Sources   Download

LGPL

The Requires

  • php >=5.3.0
  • ext-xml *

 

The Development Requires

php project mpx ganttproject gan

13/08 2014

dev-master

9999999-dev http://phpoffice.github.io

PHPProject - Read, Create and Write Project Management documents in PHP

  Sources   Download

LGPL

The Requires

  • php >=5.3.0
  • ext-xml *

 

The Development Requires

php project mpx ganttproject gan

13/08 2014

0.2.0

0.2.0.0 http://phpoffice.github.io

PHPProject - Read, Create and Write Project Management documents in PHP

  Sources   Download

LGPL

The Requires

  • php >=5.3.0
  • ext-xml *

 

The Development Requires

php project mpx ganttproject gan