2017 © Pedro Peláez
 

library media

simple media manipulation

image

mhndev/media

simple media manipulation

  • Monday, December 12, 2016
  • by majidphpdeveloper
  • Repository
  • 2 Watchers
  • 2 Stars
  • 396 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Media Manipulation

simple media manipulation library, (*1)


define('ROOT', pathinfo(__FILE__)['dirname']); define('IMAGE_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'image'); define('AUDIO_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'audio'); define('VIDEO_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'video'); define('TEXT_PATH' , ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'text'); \mhndev\media\UploadFile::config([ 'min_storage' => 100, 'formats'=>[ 'image'=>[ 'avatar'=>[ 'storagePath'=> IMAGE_PATH.DIRECTORY_SEPARATOR.'avatar', 'uploadSizeLimit' => 2, ] ], 'audio'=>[ 'music'=>[ 'storagePath'=> AUDIO_PATH.DIRECTORY_SEPARATOR.'music', 'uploadSizeLimit' => 10 ], 'madahi'=>[ 'storagePath'=> AUDIO_PATH.DIRECTORY_SEPARATOR.'madahi', 'uploadSizeLimit' => 4 ] ], 'video'=>[ 'storagePath'=> VIDEO_PATH, 'uploadSizeLimit' => 10 ], 'text'=>[ 'license'=>[ 'storagePath'=> TEXT_PATH.DIRECTORY_SEPARATOR.'license', 'uploadSizeLimit' => 1 ] ] ] ]); \mhndev\media\UploadFile::store('text', 'license'); \mhndev\media\UploadFile::store('music', 'music');

you can keep your config file as an php array in your config directory and include it in above code. above code check uploaded files and move input file with text index in rootpath.'/text/license' and also move input file with music index in rootpath.'/audio/music', (*2)

The Versions

12/12 2016

dev-master

9999999-dev http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

12/12 2016

dev-develop

dev-develop http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

12/12 2016

0.0.4

0.0.4.0 http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

10/12 2016

0.0.3

0.0.3.0 http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

21/09 2016

0.0.2

0.0.2.0 http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

20/09 2016

0.0.1

0.0.1.0 http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation

04/08 2016

0.0.0

0.0.0.0 http://github.com/mhndev/media

simple media manipulation

  Sources   Download

BSD Style

The Requires

 

media file upload image manipulation php file file manipulation