phppptx CLI command
phppptx CLI command
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.
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:
The available options are the following:.
Supported methods in presentations generated from scratch:
- activeSlide
- audio
- backgroundColor
- backgroundImage
- chart
- comment
- footer
- html
- image
- link
- list
- mathEquation
- notes
- properties
- removeShape
- rtl
- section
- shape
- slide
- settings
- svg
- table
- text
- textBox
- video
Supported methods in presentations generated with a template:
- getTemplateVariables
- removeNotes
- removeVariable
- removeVariableAudio
- removeVariableImage
- removeVariableVideo
- 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
- merge
- sign
- stream
- transform
To display all available methods use --view-methods:
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: