This introduction to the PHP Storage Manager and Transcoder (PSMT) is A Simple Object-Oriented library to manage or organize files and also convert/transcode files.
- This version of the package is only compatible with PHP 7.2 or higher.
- To use this package transcoder functions/objects, you need to install the FFmpeg For video and audio transcoding.
Simple you have to download or clone this package in your project file or server and give it read, write & execute permissions and simply open config-sample.php
in a text editor, fill in your configuration, and save it as config.php
.
Install FFmpeg -. There two ways to install FFmpeg.
-
Install it your system (recommended)
-
Download the package file.
FFmpeg static builds
Download it & put it inside the PSMT package/System
folder.
After installing FFmpeg. You have to set up paths.
Setup FFmpeg path -
Open the PSMT package config.php
file. Then search Transcoder Settings
there you can find a video or an audio transcoder settings array there you just have to change library
key paths with your FFMPEG setup path. For example - 'library' => '{Your FFMPEG path.}',
Simple.
Include autoload.php
in your project file. Or use via REST API api.php
.
Main classes
- PSMT - For storage & file management & transcoder methods.
- config - For configuring PSMT & other classes
- fileHandler - For file or folder handling methods
- restapi - For REST API to PSMT & fileHandler
Sub Classes
- logHandler - For log handling methods
- uploadHandler - For upload handling methods
- propertiesRead -For reading properties method
- imageRead - For render images method
- audioRead - For render audios method
- documentRead - For render document method
- otherRead -For render all other method
- downloadRead -For generating downloads method
- imageProcessor - For transcode images method
- videoProcessor - For transcode videos method
- audioProcessor - For transcode audios method
Thank You
Happy Coding ๐