承接 ujjwal/h-commons 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ujjwal/h-commons

Composer 安装命令:

composer require ujjwal/h-commons

包简介

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

关键字:

README 文档

README

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.

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!

For example, from your controller:

    $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!

Image Strategy to output image with WebinoImageThumb

Note: To use this you must install WebinoImageThumb. See this link

For example, from your controller:

    $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;

统计信息

  • 总下载量: 142
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2013-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固