phpword / phpword
PHPWord is a library written in PHP that create word documents.
dev-master
2012-12-25 21:55 UTC
Requires
- php: >5.2.0
This package is auto-updated.
Last update: 2024-09-18 09:06:33 UTC
README
This repository is an source code of PHPWord, turned into Composer package.
The idea is similiar to phpexcel/phpexcel, developed by ddeboer.
Installation
All you have to do is to get composer and add following lines to your composer.json
:
"require": {
"phpword/phpword": "*"
}
After that, use composer to install all dependences with:
$ ./composer.phar install
Usage
You have to require your autoloader, generated automaticly by Composer.
<?php
require_once "vendor/autoload.php";
After that, you may call PHPWord library calling
$doc = new \PHPWord();