PHPackages                             maraya/cake-php-excel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. maraya/cake-php-excel

ActiveCakephp-plugin[PDF &amp; Document Generation](/categories/documents)

maraya/cake-php-excel
=====================

CakePHP excel generator using PHPExcel library

v1.1.2(11y ago)63.4k3MITPHPPHP &gt;=5.2.0

Since Nov 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/maraya/CakePHPExcel)[ Packagist](https://packagist.org/packages/maraya/cake-php-excel)[ Docs](https://github.com/maraya/CakePHPExcel)[ RSS](/packages/maraya-cake-php-excel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (9)Used By (0)

CakePHPExcel
============

[](#cakephpexcel)

A plugin to generate Excel files with CakePHP. Uses CakePHP view files to generate them (with PHPExcel\_IOFactory class from PHPExcel).

Requirements
------------

[](#requirements)

- PHP 5.2.8
- CakePHP 2.1+
- [PHPExcel](https://github.com/phpoffice/phpexcel)
- Composer

Installation
------------

[](#installation)

Add to your composer.json file (maraya/cake-php-excel)

```
"require": {
	"maraya/cake-php-excel": "1.1.*"
},
"config": {
	"vendor-dir": "Vendor/"
},
"extra": {
    "installer-paths": {
        "Plugin/CakePHPExcel": ["maraya/cake-php-excel"]
    }
}

```

And run

```
composer update

```

Usage
-----

[](#usage)

In `app/Config/bootstrap.php` add:

```
CakePlugin::load('CakePHPExcel',
	array(
		'routes' => true
	)
);

```

Add the RequestHandler component to AppController, and map Excel extensions to the CakePHPExcel plugin

```
'RequestHandler' => array(
	'viewClassMap' => array(
		'xls' => 'CakeExcel.Excel',
		'xlsx' => 'CakeExcel.Excel'
	)
),

```

Create `Layouts/xls/default.ctp` (in this example the charset is UTF-8)

```

```

Place the view templates in a `xls` subdir, for example: `app/View/Reports/xls/clients.ctp`

```
Title

		col1
		col2
		col3

		val1
		val2
		val3

```

And in your controller:

```
class ReportsController extends AppController {
    public function clients() {
		$this->excelConfig =  array(
			'filename' => 'clients.xlsx'
		);
	}
}

```

Call the URL

```
http://example.com/reports/clients.xlsx

```

If you want to download Excel5 format, change the URL extension from xlsx to xls.

Inside your view file you can write HTML code. Please see the [PHPExcel](https://github.com/PHPOffice/PHPExcel) documentation for a guide on how to use PHPExcel.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Recently: every ~24 days

Total

7

Last Release

4148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48353eb4e6d38db425f332aec18abfab0db8cdde06f95e3072bd15d8ba972ded?d=identicon)[maraya](/maintainers/maraya)

---

Top Contributors

[![maraya](https://avatars.githubusercontent.com/u/1999596?v=4)](https://github.com/maraya "maraya (11 commits)")

---

Tags

cakephpexcelPHPExcelmaraya

### Embed Badge

![Health badge](/badges/maraya-cake-php-excel/health.svg)

```
[![Health](https://phpackages.com/badges/maraya-cake-php-excel/health.svg)](https://phpackages.com/packages/maraya-cake-php-excel)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[dakota/cake-excel

CakePHP excel generator

2325.2k](/packages/dakota-cake-excel)[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6381.4k1](/packages/arogachev-yii2-excel)[phpnt/yii2-export

Yii2 It saves data in xls, csv, word, html, pdf files.

158.9k](/packages/phpnt-yii2-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
