Skip to content

Simple PHP script to use the Zamzar file conversion API

License

Notifications You must be signed in to change notification settings

whyleyc/zamzar-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

zamzar-php

A simple PHP script to demonstrate usage of the Zamzar file conversion API.

The script:

  1. Uploads a file for conversion
  2. Polls the API to verify if the conversion job has completed
  3. Downloads any converted files when it has completed

Prereqs

Make sure you have:

Running the script

  • Change the YOUR_API_KEY to use your Zamzar API key
  • Modify $sourceFilePath to point to a file on your local filesystem you wish to convert
  • Update $convertedFilePath to use a path on your local filesystem where you wish to save any converted files.
  • Change $targetFormat to the name of a target format you wish to convert your file to (check here for a full list of supported formats).
  • Run the script from the command line using: php zamzar-sample.php

For further information check out the Zamzar API docs here.

About

Simple PHP script to use the Zamzar file conversion API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages