Code Monkey home page Code Monkey logo

psmt's Introduction

PHP Storage Manager and Transcoder (PSMT)

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.

Requirements

  1. This version of the package is only compatible with PHP 7.2 or higher.
  2. To use this package transcoder functions/objects, you need to install the FFmpeg For video and audio transcoding.

Installation

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.

  1. Install it your system (recommended)

  2. 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.

Quickstart

Include autoload.php in your project file. Or use via REST API api.php.

Documentations

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 ๐Ÿ˜Š

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.