# PhpProject **Repository Path**: mirrors_PHPOffice/PhpProject ## Basic Information - **Project Name**: PhpProject - **Description**: A pure PHP library for reading and writing project management files - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PhpProject [![Latest Stable Version](https://poser.pugx.org/phpoffice/phpproject/v/stable.png)](https://packagist.org/packages/phpoffice/phpproject) [![Coverage Status](https://coveralls.io/repos/github/PHPOffice/PhpProject/badge.svg?branch=develop)](https://coveralls.io/github/PHPOffice/PhpProject?branch=develop) [![Total Downloads](https://poser.pugx.org/phpoffice/phpproject/downloads.png)](https://packagist.org/packages/phpoffice/phpproject) [![License](https://poser.pugx.org/phpoffice/phpproject/license.png)](https://packagist.org/packages/phpoffice/phpproject) 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](http://support.microsoft.com/kb/270139) (MPX) or [GanttProject](http://www.ganttproject.biz) (GAN). PhpProject is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PhpProject/blob/develop/COPYING.LESSER). PhpProject is aimed to be a high quality software product by incorporating continuous integration and [unit testing](https://phpoffice.github.io/PhpProject/coverage/). You can learn more about PhpProject by reading the [Developers' Documentation](https://phpoffice.github.io/PhpProject/) and the [API Documentation](https://phpoffice.github.io/PhpProject/docs/). Read more about PhpProject: - [Features](#features) - [Requirements](#requirements) - [Installation](#installation) - [Getting started](#getting-started) - [Known issues](#known-issues) - [Contributing](#contributing) - [Developers' Documentation](https://phpoffice.github.io/PhpProject/) - [API Documentation](https://phpoffice.github.io/PhpProject/docs/) ### 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: - PHP 5.3+ - [XML Parser extension](http://www.php.net/manual/en/xml.installation.php) ### Installation It is recommended that you install the PhpProject library [through composer](http://getcomposer.org/). To do so, add the following lines to your ``composer.json``. ```json { "require": { "phpoffice/phpproject": "dev-master" } } ``` ## Getting started The following is a basic usage example of the PhpProject library. ```php require_once 'vendor/autoload.php'; $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](samples/). You can also read the [Developers' Documentation](https://phpoffice.github.io/PhpProject/) and the [API Documentation](https://phpoffice.github.io/PhpProject/docs/) for more details. ## Contributing We welcome everyone to contribute to PhpProject. Below are some of the things that you can do to contribute: - Read [our contributing guide](https://github.com/PHPOffice/PhpProject/blob/master/CONTRIBUTING.md) - [Fork us](https://github.com/PHPOffice/PhpProject/fork) and [request a pull](https://github.com/PHPOffice/PhpProject/pulls) to the [develop](https://github.com/PHPOffice/PhpProject/tree/develop) branch - Submit [bug reports or feature requests](https://github.com/PHPOffice/PhpProject/issues) to GitHub - Follow [@PHPOffice](https://twitter.com/PHPOffice) on Twitter