PHPackages                             kiirpi/excel-service-provider - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kiirpi/excel-service-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kiirpi/excel-service-provider
=============================

An Excel ServiceProvider for Silex.

112PHP

Since Aug 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kiirpi/ExcelServiceProvider)[ Packagist](https://packagist.org/packages/kiirpi/excel-service-provider)[ RSS](/packages/kiirpi-excel-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ExcelServiceProvider
====================

[](#excelserviceprovider)

An Excel ServiceProvider for [Silex](http://silex.sensiolabs.org).

This package is based on  - many parts of the code are copied directly from there. This package implements the PHPExcel integration as a Silex Service Provider, instead of as a Symfony2 component.

I've only implemented Excel5 support, and I doubt that I will implement the other export formats offered by the liuggio version, because I simply don't need them myself. Feel free to fork or to submit patches if you're keen to implement the other formats.

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

[](#installation)

1 Add to the 'require' section of composer.json:

```
    "require" : {
        "kiirpi/excel-service-provider": "1.0.*@dev",
    }

```

2 Register the provider:

```
$app->register(new Jaza\Silex\ExcelServiceProvider());
```

Usage
-----

[](#usage)

From within a Silex callback or elsewhere:

```
$excelService = $app['xls.service_xls5'];

$excelService->excelObj->getProperties()->setCreator("Me")
                       ->setLastModifiedBy("Me")
                       ->setTitle("Test Document")
                       ->setSubject("Test Document")
                       ->setDescription("Testing a document.")
                       ->setKeywords("testdoc")
                       ->setCategory("Test doc");

$excelService->excelObj->setActiveSheetIndex(0)
             ->setCellValue('A1', 'Hello')
             ->setCellValue('B2', 'world!');

$excelService->excelObj->getActiveSheet()->setTitle('Simple');
$excelService->excelObj->setActiveSheetIndex(0);

$response = $excelService->getResponse();
$response->headers->set('Content-Type', 'text/vnd.ms-excel; charset=utf-8');
$response->headers->set('Content-Disposition', 'attachment;filename=test.xls');

// If you are using a https connection, you have to set those two headers for compatibility with IE headers->set('Pragma', 'public');
$response->headers->set('Cache-Control', 'maxage=1');

return $response;
```

test

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/77ff6da0db7f78a67dcdfa041d8bac303e4415106366687412e99a2febb19265?d=identicon)[kiirpi](/maintainers/kiirpi)

---

Top Contributors

[![Jaza](https://avatars.githubusercontent.com/u/79373?v=4)](https://github.com/Jaza "Jaza (7 commits)")[![kiirpi](https://avatars.githubusercontent.com/u/14698?v=4)](https://github.com/kiirpi "kiirpi (6 commits)")

### Embed Badge

![Health badge](/badges/kiirpi-excel-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/kiirpi-excel-service-provider/health.svg)](https://phpackages.com/packages/kiirpi-excel-service-provider)
```

###  Alternatives

[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k414.1k18](/packages/phalcon-zephir)[rafaelfragoso/haversini-formula

This PHP class can replace the Google Distance Matrix to calculate the distance between two points using latitude and longitude. It will prevent you to do massive requests to Google servers and enhance your service performance.

45212.0k](/packages/rafaelfragoso-haversini-formula)

PHPackages © 2026

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