PHPackages                             netglue/zf2-prismic-module - 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. netglue/zf2-prismic-module

Abandoned → [netglue/expressive-prismic](/?search=netglue%2Fexpressive-prismic)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

netglue/zf2-prismic-module
==========================

ZF2 module for the Prismic PHP SDK. Simple wrapper and some added convenience.

0.2.0(9y ago)035[2 issues](https://github.com/netglue/ZF2-Prismic-Module/issues)PHPPHP &gt;=5.4

Since Feb 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/netglue/ZF2-Prismic-Module)[ Packagist](https://packagist.org/packages/netglue/zf2-prismic-module)[ Docs](http://netglue.co/)[ RSS](/packages/netglue-zf2-prismic-module/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

ZF2 Module for quick and easy installation of Prismic PHP SDK
=============================================================

[](#zf2-module-for-quick-and-easy-installation-of-prismic-php-sdk)

[![Build Status](https://camo.githubusercontent.com/b4146b8235982e6f4d33ce557f53881ae9176ceee286da6f5f8f45851c26058a/68747470733a2f2f7472617669732d63692e6f72672f6e6574676c75652f5a46322d507269736d69632d4d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/netglue/ZF2-Prismic-Module)[![Code Climate](https://camo.githubusercontent.com/93c33a66483f49ddad10030da4942132dd818e8c27effe8e78f924121b12cc8d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e6574676c75652f5a46322d507269736d69632d4d6f64756c652f6261646765732f6770612e737667)](https://codeclimate.com/github/netglue/ZF2-Prismic-Module)[![Test Coverage](https://camo.githubusercontent.com/f6bb066a72707c9ec5a4aaa68c832083dcfe557e3884f7dc721b1620ea4865a9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e6574676c75652f5a46322d507269736d69632d4d6f64756c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/netglue/ZF2-Prismic-Module)

Routing
-------

[](#routing)

The module can currently helpfully determine which document corresponds to which Controller/Action by adding additional parameters to your routes.

Displaying a specific document that has been bookmarked would go something like this:

```
// ...
'myRouteName' => array(
    'type' => 'Literal',
    'options' => array(
        'route' => '/some-where',
        'defaults' => array(
            'controller' => 'My\Controller',
            'action' => 'my-place',
            'bookmark' => 'my-bookmark-name',
        ),
    ),
),
// ...

```

Then, in your `My\Controller` :

```
public function myPlaceAction()
{
    $document = $this->prismic()->getDocument();
}

'prismic' => array(
    'routeParameters' => array(
        'bookmark' => 'bookmark',
        'mask'     => 'mask',
        'ref'      => 'ref',
        'id'       => 'prismic-id',
        'slug'     => 'slug',
    ),
),

```

Automatic Page Meta
-------------------

[](#automatic-page-meta)

If you are in the habit of designing document masks that use the same document field for common page elements such as `` and meta description, you can configure the module to watch out for these and trigger the appropriate view helper automatically. Current supported elements are:

```

```

The automation is implemented by way of a listener that listens to the Prismic controller plugin `NetgluePrismic\Mvc\Controller\Plugin\Prismic::setDocument` method. Once we know what document we're dealing with for the current request, if enabled, the listener will examine the document and try to pair up document fields with meta data and call the appropriate zend view helper with the found information. Example configuration is found in `config/module.config.php`

By default the listener, although attached, is not enabled.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

3300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6c21b0de8cc9938916a186f5f2ed0bee90a4e23e0b29cf7b9c18bfe99067f9b?d=identicon)[netglue](/maintainers/netglue)

---

Top Contributors

[![gsteel](https://avatars.githubusercontent.com/u/2803720?v=4)](https://github.com/gsteel "gsteel (168 commits)")

---

Tags

zf2prismicionetglue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/netglue-zf2-prismic-module/health.svg)

```
[![Health](https://phpackages.com/badges/netglue-zf2-prismic-module/health.svg)](https://phpackages.com/packages/netglue-zf2-prismic-module)
```

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[slm/google-analytics

Google Analytics tracking integration for Zend Framework 2

4180.3k](/packages/slm-google-analytics)

PHPackages © 2026

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