Skip to content
forked from PHPOffice/PHPWord

A pure PHP library for reading and writing word processing documents. Fork adds support for image alt attribute.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER
Notifications You must be signed in to change notification settings

NIUTISS/PHPWord

 
 

PHPWord

Source

A pure PHP library for reading and writing word processing documents. Fork adds support for image alt attribute.

Installation using composer

Update composer.json to include the following:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/niutiss/phpword"
    }
  ],
  "require": {
    "phpoffice/phpword": "dev-main"
  }
}

Run composer install

Usage Example

// Add an image with alt text
$section->addImage(storage_path('img/niu_logo_alt.jpg'), [
    'width' => 160,
    'height' => 40,
    'alignment' => Jc::START,
    'alt' => 'Northern Illinois University logo'
]);

Notes

Please contact us at ulibsysoff@niu.edu if you have any questions.

About

A pure PHP library for reading and writing word processing documents. Fork adds support for image alt attribute.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%