=== learndash-certificates-phpword ===
Contributors: ogrecooper
Donate link: https://cleverogre.com/
Tags: supplemental, theme, cleverogre
Requires at least: 5.0
Tested up to: 6.0.2
Requires PHP: 7.3
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate LearnDash pdf certificates based on Word document templates.

== Description ==

Generate LearnDash pdf certificates based on Word document templates. Requires PhpWord and PhpSpreadsheet to be installed via composer before use.

Prerequisites:
* [OgreCore](https://plugins.cleverogre.com/plugin/ogrecore/)
* [Unoconv](https://github.com/dompdf/dompdf) & [PHP Unoconv](https://github.com/dompdf/dompdf) (Unoserver not currently supported) or [Dompdf](https://github.com/dompdf/dompdf)
* [LibreOffice Core](https://github.com/LibreOffice/core) (only required if using Unoconv)
* [PhpWord](https://github.com/PHPOffice/PHPWord) & [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet)

== Installation ==

1. Install prerequisites:
   * Install OgreCore plugin to wordpress instance
   * Install root user level packages (only required if using Unoconv)
     * `yum install libreoffice-core` (as root user)
     * `yum install unoconv`
   * Install composer packages within plugin directory (`wp-content/plugins/learndash-certificates-phpword`)
     * `composer require php-unoconv/php-unoconv` and/or `composer require dompdf/dompdf`
     * `composer require phpoffice/phpword`
     * `composer require phpoffice/phpspreadsheet`
2. Upload the plugin files to the `/wp-content/plugins/learndash-certificates-phpword` directory and ensure that it is active.
3. Create new certificate and assign template file from media library in "PhpWord Template Settings" meta box. Use template placeholders within template file as needed.

== Frequently Asked Questions ==

= What is this plugin? =

If you do know what plugin you have downloaded, please contact [CleverOgre](team@cleverogre.com) for more information. This plugin is only developed for a small, private audience.

== Changelog ==

= 0.1.1 - 2023-02-14 =
* Decreased required PHP version to 7.3. _NOTE: PDF conversion will be functional with PHP <8.0._
* Support for Dompdf as alternative to Unoconv.

= 0.1.0 - 2023-02-01 =
* Initial build of learndash-certificates-phpword plugin.
