2017 © Pedro Peláez
 

library h-commons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

image

ujjwal/h-commons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  • Friday, February 28, 2014
  • by ojhaujjwal
  • Repository
  • 0 Watchers
  • 0 Stars
  • 128 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

HCommons

A Zend Framework 2 module which contains CSV render strategy to export data to csv format and image strategy to output image. This module also contains some useful abstract classes and some useful snippets that can be used across multiple modules., (*1)

This module is deprecated

Installation

  • Add "ujjwal/h-commons": "dev-master" to your composer.json and run php composer.phar update
  • Enable the module in config/application.config.php

Features

  • Csv Render Strategy to export data to csv format
  • Image Strategy to output image with WebinoImageThumb

Csv Render Strategy to export data to csv format.

Exporting to csv format was never easy. But, now it is!, (*2)

For example, from your controller:, (*3)

    $csv =  new CsvModel($data);
    $csv->setFileName('my_file_name');
    return $csv;

Where, $data is a class implementing Traversable or an array whose elements are rows of CSV file!, (*4)

Image Strategy to output image with WebinoImageThumb

Note: To use this you must install WebinoImageThumb. See this link, (*5)

For example, from your controller:, (*6)

    $image =  new ImageModel();
    $image->setFileName('my_file_name.png');// you can use jpeg || jpg || png || gif
    return $image;

// or you can do
    $image =  new ImageModel();
    $thumbnailer = $this->getServiceLocator()->get('WebinoImageThumb');
    $thumb = $thumbnailer->create("path/to/file");
    $thumb->resize($size, $size);// size in pixel
    $image->setPhpThumb($thumb);
    return $image;

The Versions

28/02 2014

dev-master

9999999-dev https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

16/01 2014

1.3.2

1.3.2.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

28/12 2013

1.3.1

1.3.1.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

24/12 2013

1.2.2

1.2.2.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

23/12 2013

1.2.1

1.2.1.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

23/12 2013

1.2

1.2.0.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

14/12 2013

1.1

1.1.0.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2

09/12 2013

1.0

1.0.0.0 https://github.com/ojhaujjwal/HCommons

A Zend Framework 2 module which contains some usefull abstract classes that can be used across multiple modules

  Sources   Download

The Requires

 

by Avatar ojhaujjwal

zf2