PHPOffice/PhpProject
关于
A pure PHP library for reading and writing project management files
效率与自动化可以做什么
- 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
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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 (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.
Read more about PhpProject:
- Features
- Requirements
- Installation
- Getting started
- Known issues
- Contributing
- Developers' Documentation
- API Documentation
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 7.3+
- XML Parser extension
Installation
It is recommended that you install the PhpProject library through composer. To do so, add
the following lines to your composer.json.
{
"require": {
"phpoffice/phpproject": "dev-master"
}
}
Getting started
The following is a basic usage example of the PhpProject library.
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. You can also read the Developers' Documentation and the API Documentation 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
- Fork us and request a pull to the develop branch
- Submit bug reports or feature requests to GitHub
- Follow @PHPOffice on Twitter
探索相关项目
加载中…


