Event Tickets Extension: PDF Tickets WP Registry grade D+. High-severity findings · 2 findingsWP RegistryHigh-severity findings · 2 findingsOpen the reportD+
Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital Downloads ticket emails will become PDF files saved to your Uploads directory and then get attached to the ticket emails.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mt-support/tribe-ext-pdf-tickets/releases/download/1.2.4/tribe-ext-pdf-tickets-1.2.4.zipThe mPDF library we rely upon for this extension uses Composer and autoloading (as of their version 7 from October 2017):
Composer is now the only officially supported installation method. There are no pre-packaged library archives.
View mPDF's changelogs at https://github.com/mpdf/mpdf/releases
Instructions for this extension's build and package process for a new version of the plugin:
- Clone this GitHub repository and create a new branch for your changes.
- Install Composer into your branch's directory.
- Since you may use Composer in other projects, you may want to install Composer at
/Users/YOUR-NAME/composer.pharand then make a symlink pointing to it at/Users/YOUR-NAME/git/tribe-ext-pdf-tickets/composer.pharso that you can have Composer installed just once on your machine but run it in each project you use Composer for. - Note that the above tip is for Mac (*nix) based and file paths and symlink-type functionality on Windows would have different instructions but likely the same concept.
- Since you may use Composer in other projects, you may want to install Composer at
- Using Terminal,
cdto your project directory. Example:cd /Users/YOUR-NAME/git/tribe-ext-pdf-tickets - Delete
composer.lockand thevendorsubdirectory (they will get regenerated automatically)- This is not really the normal way to use Composer, but neither is committing the
vendorsubdirectory to your own repository. We need to do it this way to ensure everything gets rebuilt afresh when preparing a plugin version update.
- This is not really the normal way to use Composer, but neither is committing the
- Run
php composer.phar install- This will rebuild the
vendorsubdirectory with the latest versions matching the rules incomposer.json. It will generate the required autoload.php file, the mPDF library, and the libraries required by the autoloader and mPDF. #Composer just did its magic!
- This will rebuild the
- Make your code changes and test them on your localhost. Commit your changes to GitHub (and you would typically add the
Code Reviewtag and go through that process). - Once ready to build the finalized .zip to distribute to QA or to customers, run
php composer.phar archive --file tribe-ext-pdf-tickets- Because we did not set a
--dirargument for thearchivecommand, Composer will create the .zip right in the project's directory. #Convenient!
- Because we did not set a
- Unzip this newly-created
tribe-ext-pdf-tickets.zipfile to make sure it got built correctly (excluding files like .gitignore, composer.json, etc). - Upload this .zip to TheEventsCalendar.com's Media Library (or wherever you want to distribute it, such as uploading to Central for QA to test).
- Delete this .zip file from your hard drive.
Customer Plugin Updates
Like some of the other files you see in this GitHub repository, this README.md file does not get included in the final .zip that makes it to the customer. It and other files are excluded via Composer's build process, documented above.
However, if someone updates the plugin via GitHub Updater, they will receive the complete repository, not the Composer-zipped version. This is why the vendor subdirectory gets committed to our repository. The instructions above are for publishing the plugin to TheEventsCalendar.com's Extension library.
Releases
7 releases. Each count is every asset in that release; expand a row for the breakdown.