2017 © Pedro Peláez
 

library file

Cygnite File Component. This package use for File Upload, Image Thumbnail Creation etc.

image

cygnite/file

Cygnite File Component. This package use for File Upload, Image Thumbnail Creation etc.

  • Sunday, June 7, 2015
  • by Sanjoy
  • Repository
  • 2 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

File Component

Installation

Array Manipulator uses Composer for installation. For installing composer documentation, please refer to getcomposer.org. Add following into your composer.json., (*1)

"cygnite/file" : "1.*"

Cygnite file component handling file upload and creating thumbnail image etc., (*2)

Upload file using file component., (*3)

Example Usage:, (*4)

use Cygnite\Common\File\Upload\Upload;

$status = Upload::process( function($upload)
{
    // Your code goes here
    $upload->file = 'document';
    $upload->ext = array("JPG");
    $upload->size = '32092';

    if ( $upload->save(array("destination"=> "upload", "fileName"=>"file_new_name")) ) {
         // Upload Success
    } else {
         // Error catch here
    }
});

// var_dump($status);

Image Cropping / Thumbnail Image:, (*5)

Make thumbnail image., (*6)

Example Usage:, (*7)

use Cygnite\Common\File\Thumbnail\Image;

$thumb = new Image();
$thumb->directory = 'Set your directory path';
$thumb->fixedWidth = 100;
$thumb->fixedHeight = 100;
$thumb->thumbPath = 'your thumbnail image path';
$thumb->thumbName = 'Your thumbnail image name';
// Optional. If you doen't want to have custom name then it will generate thumb as same name of original image.
$thumb->resize();

The Versions

07/06 2015

dev-master

9999999-dev

Cygnite File Component. This package use for File Upload, Image Thumbnail Creation etc.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

file upload thumbnail cygnite

07/06 2015

v1.0.2

1.0.2.0

Cygnite File Component. This package use for File Upload, Image Thumbnail Creation etc.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

file upload thumbnail cygnite

23/11 2014

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

file upload thumbnail cygnite

23/11 2014

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

file upload thumbnail cygnite