PHPackages                             denisristic/word-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. [Templating &amp; Views](/categories/templating)
4. /
5. denisristic/word-service-provider

ActiveLibrary[Templating &amp; Views](/categories/templating)

denisristic/word-service-provider
=================================

A wrapper for PHPWord usage in Silex 2 projects

0.1.1(9y ago)032MITPHPPHP &gt;=5.4.0

Since Jul 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/denisristic/word-service-provider)[ Packagist](https://packagist.org/packages/denisristic/word-service-provider)[ Docs](https://github.com/denisristic/word-service-provider)[ RSS](/packages/denisristic-word-service-provider/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Silex WordServiceProvider
=========================

[](#silex-wordserviceprovider)

Introduction
------------

[](#introduction)

This service provider for Silex allows you to quickly generate Word (\*.doc) documents. Either pass in a query result set, and a list of headers, or use the Doctrine functionality to convert a html to a document.

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

[](#installation)

Require the provider using `composer`:

```
    composer require denisristic/word-service-provider

```

Register the provider in your application somewhere:

```
    $app->register(new \denisristic\WordServiceProvider\Provider\WordServiceProvider());

```

Usage
-----

[](#usage)

Generate a document from HTML:

```
        $word = $app['word']->generateDOC('Test HTML header');
```

Forcing a download of the spreadsheet:

```
        $controllers->get('/download', function () use($app) {

            $word = $app['word']->generateDOC('Test HTML header');

            $docName = 'entries-' . date('Y-m-dhis') . '.doc';
            $response = new Response($word);
            $response->headers->add(array(
                'Content-Type' => 'application/vns.ms-word'
                ,'Content-Disposition' => 'inline; filename="' . $docName . '"'
                ,'Pragma' => 'no-cache'
                ,'Expired' => 0
            ));
            return $response;

        })->bind('download');
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~69 days

Total

2

Last Release

3570d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/431003?v=4)[Denis Ristic](/maintainers/denisristic)[@denisristic](https://github.com/denisristic)

---

Top Contributors

[![denisristic](https://avatars.githubusercontent.com/u/431003?v=4)](https://github.com/denisristic "denisristic (1 commits)")

---

Tags

phpsymfonydocwordPhpWordsilex

### Embed Badge

![Health badge](/badges/denisristic-word-service-provider/health.svg)

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k37.4M222](/packages/phpoffice-phpword)

PHPackages © 2026

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