PHPackages                             mamuz/mamuz-blog - 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. [Database &amp; ORM](/categories/database)
4. /
5. mamuz/mamuz-blog

ActiveLibrary[Database &amp; ORM](/categories/database)

mamuz/mamuz-blog
================

Provides blog feature for ZF2 with Doctrine

1.6.0(10y ago)101.1k11MITPHPPHP &gt;=5.4

Since Jul 19Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mamuz/MamuzBlog)[ Packagist](https://packagist.org/packages/mamuz/mamuz-blog)[ Docs](https://github.com/mamuz/MamuzBlog)[ RSS](/packages/mamuz-mamuz-blog/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (18)Versions (23)Used By (1)

MamuzBlog
=========

[](#mamuzblog)

[![Build Status](https://camo.githubusercontent.com/0d13b14b42b0e21a60a8feabb1ff660b70e787aafa422611c23b1caf83b098f2/68747470733a2f2f7472617669732d63692e6f72672f6d616d757a2f4d616d757a426c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mamuz/MamuzBlog)[![Coverage Status](https://camo.githubusercontent.com/cddf1ba1c100086cd7cef149af4dedd768f61e8f99ac343827018560aa45bfa2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d616d757a2f4d616d757a426c6f672f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/mamuz/MamuzBlog?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bd0774b99e33765abcbdf7206f2c359ce6cb1f9ffa68084641694e301df30ea6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616d757a2f4d616d757a426c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mamuz/MamuzBlog/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/3a56258d8df0931619d0740b6b8de0998e2cc6a2e88e3c307cbc6311d4b5f889/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38656433316530372d373562332d343632632d613663612d6663653633623430316562382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/8ed31e07-75b3-462c-a6ca-fce63b401eb8)[![HHVM Status](https://camo.githubusercontent.com/215412d61199d026a943cbe8ab36f9d4292d2ec5943560632e739f4265b2b566/687474703a2f2f6868766d2e683463632e64652f62616467652f6d616d757a2f6d616d757a2d626c6f672e706e67)](http://hhvm.h4cc.de/package/mamuz/mamuz-blog)[![Dependency Status](https://camo.githubusercontent.com/0148b06853d4cfd1ea7391ffc976b9531daf48f4a0b9b88103a978bf29afe082/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533386637383837343663343733393830633030303031642f62616467652e737667)](https://www.versioneye.com/user/projects/538f788746c473980c00001d)

[![Latest Stable Version](https://camo.githubusercontent.com/54d904aa3e28e18f49123b24f6bc4b0a15cd8c5d6f642112590dc118ef2e404e/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d626c6f672f762f737461626c652e737667)](https://packagist.org/packages/mamuz/mamuz-blog)[![Latest Unstable Version](https://camo.githubusercontent.com/ca47c8cd76ee97b9703d6f519fd172e432fedabb27ff5769069d6428d2655ba8/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d626c6f672f762f756e737461626c652e737667)](https://packagist.org/packages/mamuz/mamuz-blog)[![Total Downloads](https://camo.githubusercontent.com/01d571c0f030eb5dada3b16e79875b375c3d71be0c3a537cde70e6807ac1d344/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d626c6f672f646f776e6c6f6164732e737667)](https://packagist.org/packages/mamuz/mamuz-blog)[![License](https://camo.githubusercontent.com/594a8abeb4b78eca47eff1ed8f10732984ebfdaca9299eaf7276f470908699bb/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d626c6f672f6c6963656e73652e737667)](https://packagist.org/packages/mamuz/mamuz-blog)

Features
--------

[](#features)

- This module provides a blog based on ZF2 and Doctrine2.
- Posts are rendered by a markdown parser.
- Posts are taggable and searchable.
- Post listing is provided, same is true for tags.
- Hyperlinks to dedicated posts are secured by encrypted identities.
- Hyperlinks also ends with slugified post titles to meet SEO.
- Hyperlinks are Permalinks.
- Views are twitter-Bootstrap compatible.

Screenshot[![MamuzBlog](https://cloud.githubusercontent.com/assets/4173317/3939375/26d27e8a-24c6-11e4-8fd4-e4e1ced9652d.png)](https://cloud.githubusercontent.com/assets/4173317/3939375/26d27e8a-24c6-11e4-8fd4-e4e1ced9652d.png)Installation
------------

[](#installation)

The recommended way to install [`mamuz/mamuz-blog`](https://packagist.org/packages/mamuz/mamuz-blog) is through [composer](http://getcomposer.org/) by adding dependency to your `composer.json`:

```
{
    "require": {
        "mamuz/mamuz-blog": "*"
    }
}
```

After that run `composer update` and enable this module for ZF2 by adding `MamuzBlog` to `modules` in `./config/application.config.php`:

```
// ...
    'modules' => array(
        'MamuzBlog',
    ),
```

This module is based on [`DoctrineORMModule`](https://github.com/doctrine/DoctrineORMModule)and be sure that you have already [configured database connection](https://github.com/doctrine/DoctrineORMModule).

Create database tables with command line tool provided by [`DoctrineORMModule`](https://github.com/doctrine/DoctrineORMModule):

```
./vendor/bin/doctrine-module orm:schema-tool:update
```

Configuration
-------------

[](#configuration)

### Post identity encryption for hyperlinks

[](#post-identity-encryption-for-hyperlinks)

Encryption is supported by [`hashids/hashids`](https://github.com/ivanakimov/hashids.php)and have to be configured by copy `./vendor/mamuz-blog/config/crypt.local.php.dist`to `./config/autoload/crypt.local.php`. Be sure that this file is not under version control. The only thing you have to do is changing `salt` value to any complex string.

### Default configuration

[](#default-configuration)

Besides configuration for identity encryption this module is usable out of the box, but you can overwrite default configuration by adding a config file in `./config/autoload` directory. For default configuration see [`module.config.php`](https://github.com/mamuz/MamuzBlog/blob/master/config/module.config.php)

### Pagination

[](#pagination)

Listings of posts and tags includes a pagination feature, which seperates views to a default range. Default range is overwritable by adding a config file in `./config/autoload` directory.

#### Posts

[](#posts)

Post listing is provided by route `blogPublishedPosts` and default range is two items.

#### Tags

[](#tags)

Tag listing is provided by route `blogTags` and default range is 10 items.

Creating a new Post
-------------------

[](#creating-a-new-post)

Create an entity in `MamuzBlogPost` repository and tag it in related `MamuzBlogTag`.

*Admin Module to provide an interface for that is planned.*

Workflow
--------

[](#workflow)

If routing to a dedicated post found by published flag and encrypted identity is successful, post content will be responsed in a new view model rendered as markdown, otherwise it will set a 404 status code to the http response object.

Events
------

[](#events)

For the sake of simplicity `Event` is used for FQN [`MamuzBlog\EventManager\Event`](https://github.com/mamuz/MamuzBlog/blob/master/src/MamuzBlog/EventManager/Event.php).

The following events are triggered by `Event::IDENTIFIER` *mamuz-blog*:

NameConstantDescription*createPaginator.pre*`Event::PRE_PAGINATION_CREATE`Before pagination creation for posts/tags listing*createPaginator.post*`Event::POST_PAGINATION_CREATE`After pagination creation for posts/tags listing*findPublishedPost.pre*`Event::PRE_FIND_PUBLISHED_POST`Before dedicated post retrieval*findPublishedPost.post*`Event::POST_FIND_PUBLISHED_POST`After dedicated post retrievalTerminology
-----------

[](#terminology)

- **Posts**: Published articles about any issues which are listed chronological in a blog.
- **Tag**: Category to group related posts to a specific issue.
- **Permalink**: Human-readable and unchangeable hyperlink to a dedicated post or to a list of posts by a specific tag.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

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

Recently: every ~44 days

Total

22

Last Release

3919d ago

Major Versions

0.2.2 → 1.0.02014-07-29

### Community

Maintainers

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

---

Top Contributors

[![mamuz](https://avatars.githubusercontent.com/u/4173317?v=4)](https://github.com/mamuz "mamuz (169 commits)")

---

Tags

blogdoctrinezf2zf2-moduledoctrinemarkdownzf2blogtwitter bootstrap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mamuz-mamuz-blog/health.svg)

```
[![Health](https://phpackages.com/badges/mamuz-mamuz-blog/health.svg)](https://phpackages.com/packages/mamuz-mamuz-blog)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37335.4k9](/packages/hounddog-doctrine-data-fixture-module)

PHPackages © 2026

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