Classes, interfaces and traits

PVAudio

PVAudio is a class designed to manipulate audio files and transcoding to various formats.

PVAudio works with all kinds of audio files: mp3, wave, real audio, etc. It utilizes command tools like FFMPEG to do the transcoding and will return the results from the command line. Example: ```php //Set the file to be converted $old_file = '/path/to/file/audio.wav'; //Set the path of the new file $new_file = '/path/to/file/audio.mp3'; //Options to pass to the FFmpeg or other conversion tools //The following will place a -f infront of the input $options = array('input_f' => ''); //Run the conversion PVAudio::init(); PVAudio::convertAudioFile($old_file, $new_file , $options ); ```
« More »

PVImage

PVImage is a class for handling the processing and format of all image files.

PVImage has various functions built into it such as adding watermarks, resizing, cropping and more. By default, the class will use Imagick but can be set to use other image processing tools.
« More »

PVVideo

PVVideo is a class designed to manipulate video files and transcoding to various formats.

PVVideo works with all kinds of audio files: mp4, mov, ogg, etc. It utilizes command tools like FFMPEG to do the transcoding and will return the results from the command line. Example: ```php //Set the file to be converted $old_file = '/path/to/file/video.mov'; //Set the path of the new file $new_file = '/path/to/file/video.mp4'; //Options to pass to the FFmpeg or other conversion tools //The following will place a -f infront of the input $options = array('input_f' => ''); //Run the conversion PVVideo::init(); PVVideo::convertAudioFile($old_file, $new_file , $options ); ```
« More »