phppptx CLI command

phppptx CLI command

Information

phppptx Premium licenses include a phppptx-cli script to speed up developments and assist you in the work with phppptx by generating sample code skeletons, checking server settings, returning information and other useful tasks.

How to use

To run phppptx-cli.php and view all available options, execute:

If no option or valid parameter are set, the help information is displayed.

For example, the following command generates a skeleton (phppptx-sample-skeleton.php as default) to create a new PPTX adding html, list and text methods:

Available options

The available options are the following:.

Skeleton methods

Supported methods in presentations generated from scratch:

  • activeSlide
  • audio
  • backgroundColor
  • backgroundImage
  • chart
  • comment
  • footer
  • html
  • image
  • link
  • list
  • mathEquation
  • properties
  • removeShape
  • rtl
  • section
  • shape
  • slide
  • settings
  • table
  • text
  • textBox
  • video

Supported methods in presentations generated with a template:

  • getTemplateVariables
  • removeVariable
  • replaceAudio
  • replaceImage
  • replaceList
  • replaceTable
  • replaceText
  • replaceVideo
  • setTemplateSymbol

Template methods are only added to the skeleton when a PPTX template is set using "-t" parameter:

These template methods are not added to the skeleton when creating a new PPTX without a template.

Other supported methods:

  • encrypt
  • sign
  • stream
  • transform

To display all available methods use --view-methods:

Examples

Generate a phppptx skeleton using html, list and text methods:

Generate a phppptx skeleton using a template and replaceImage, replaceList and replaceText methods:

Generate a phppptx skeleton and save the sample as custom-skeleton.php:

Check server settings:

View phppptx license information: