Skip to content

whyleyc/zamzar-php

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

No packages published

Languages