Search by

pieceofcake2 / csv-view

ttsurupieceofcake2

CakePHP 2 view class and component for exporting data as CSV

Package info

github.com/pieceofcake2/csv-view

Type:cakephp-plugin

pkg:composer/pieceofcake2/csv-view

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.3.4 2026-10-16 08:36 UTC

README

GitHub License Packagist Version PHP CakePHP PHPStan CI Codecov

CsvView renders view variables as CSV, like JsonView and XmlView do for JSON and XML, so exporting model data as CSV needs no view template. The CsvView component builds the columns and headers from find('all') results. This is a fork of FriendsOfCake/cakephp-csvview 2.x for pieceofcake2/cakephp.

Documentation

The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/CsvView/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.

Requirements

  • PHP 8.0+
  • pieceofcake2/cakephp 2.12+

Installation

composer require pieceofcake2/csv-view

Contributing

See the contribution guidelines.

Origin

This package is a maintained fork of FriendsOfCake/cakephp-csvview (friendsofcake/cakephp-csvview on Packagist, last upstream version 1.3.0), originally by Jose Diaz-Gonzalez. It is maintained for CakePHP 2 on modern PHP by pieceofcake2. Changes from the original are listed in the commit history since the fork.

License

The MIT License. See LICENSE.