2017 © Pedro Peláez
 

module qu-plupload

ZF2 Module for Plupload, PhpThumb and included Database

image

qu-modules/qu-plupload

ZF2 Module for Plupload, PhpThumb and included Database

  • Saturday, April 27, 2013
  • by qu
  • Repository
  • 1 Watchers
  • 6 Stars
  • 409 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

QuPlupload

ZF2 Module for Plupload, PhpThumb and included Database 0.0.1-dev, (*1)

Screen Shots

QuDemo example screenshot, (*2)

Requirements

  • ZendSkeletonApplication https://github.com/zendframework/ZendSkeletonApplication
  • ZfcBase https://github.com/ZF-Commons/ZfcUser
  • WebinoImageThumb https://github.com/webino/WebinoImageThumb

Installation by Composer

cd YourFolderProject/
php composer.phar require "qu-modules/qu-plupload":"dev-master"

Installation Drag and Drop

  • Drag a folder into modules folder or vendor folder

Next

  • QuAdminCompleteApp provider assets
  • Enable modules (QuPlupload/WebinoImageThumb) application.config.php and configure the routes module.config.php
  • Folder permissions to upload

Integration

  • Instance
<div class="PluploadLoad">
    echo $this->PluploadHelpLoad($id);
</div>

```html , (*3)

echo $this->PluploadHelp('uploader');

- Add table in your database ```mysql CREATE TABLE IF NOT EXISTS `qu-plupload` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id_parent` int(11) NOT NULL, `model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `tmp_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `error` int(255) NOT NULL, `size` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

Installation all application

cd my/project/dir
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
php composer.phar require "zf-commons/zfc-base":"dev-master"
php composer.phar require "webino/webino-image-thumb":"dev-master"
php composer.phar require "qu-modules/qu-plupload":"dev-master"

Config

  • In global.php
return array(
    'db' => array(
        'driver' => 'Pdo',
        'dsn'            => 'mysql:dbname=qu-modules;hostname=localhost',
        'username'       => 'root',
        'password'       => '',
        'driver_options' => array(
            PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
        ),
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
        ),

    ),

);
  • Enable modules (QuPlupload/WebinoImageThumb) application.config.php and configure the routes module.config.php, (*4)

  • Add database, (*5)

CREATE DATABASE IF NOT EXISTS `qu-modules`;
use `qu-modules`;
CREATE TABLE IF NOT EXISTS `qu-plupload` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `id_parent` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tmp_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error` int(255) NOT NULL,
  `size` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;

Virtual Host

Afterwards, set up a virtual host to point to the public/ directory of the project and you should be ready to go!, (*6)

The Versions

27/04 2013

dev-master

9999999-dev https://github.com/Celtico/QuPlupload/

ZF2 Module for Plupload, PhpThumb and included Database

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 module plupload