2017 © Pedro Peláez
 

library mamuz-content-manager

Provides simple content manager for ZF2 with Doctrine

image

mamuz/mamuz-content-manager

Provides simple content manager for ZF2 with Doctrine

  • Thursday, August 20, 2015
  • by mamuz
  • Repository
  • 1 Watchers
  • 3 Stars
  • 768 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

MamuzContentManager

Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight HHVM Status Dependency Status, (*1)

Latest Stable Version Latest Unstable Version Total Downloads License, (*2)

Features

  • This module provides a CMS based on ZF2 and Doctrine2.
  • Pages are persistent in repository and accessable by ZF2 routes.
  • Pages are rendered by a markdown parser.

Installation

The recommended way to install mamuz/mamuz-content-manager is through composer by adding dependency to your composer.json:, (*3)

{
    "require": {
        "mamuz/mamuz-content-manager": "*"
    }
}

After that run composer update and enable this module for ZF2 by adding MamuzContentManager to the modules key in ./config/application.config.php:, (*4)

// ...
    'modules' => array(
        'MamuzContentManager',
    ),

This module is based on DoctrineORMModule and be sure that you have already configured database connection., (*5)

Create database tables with command line tool provided by DoctrineORMModule:, (*6)

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

Configuration

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, (*7)

Creating a new Page

Create an entity in MamuzPage repository., (*8)

Admin Module to provide an interface for that is planned., (*9)

Workflow

In case of successful routing page parameter is used to find a page entity by path property. If found page is flagged as published, content will be rendered by a markdown parser and pushed to the HTTP-Response object as a new view model, otherwise a 404 HTTP status code will be set to the HTTP-Response object., (*10)

Events

For the sake of simplicity Event is used for FQN MamuzContentManager\EventManager\Event., (*11)

The following events are triggered by Event::IDENTIFIER mamuz-content-manager:, (*12)

Name Constant Description
findPublishedPageByPath.pre Event::PRE_PAGE_RETRIEVAL Before page retrieval by path
findPublishedPageByPath.post Event::POST_PAGE_RETRIEVAL After page retrieval by path

The Versions

10/08 2014

0.2.0

0.2.0.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz

26/07 2014

0.1.4

0.1.4.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz

25/07 2014

0.1.3

0.1.3.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz

21/07 2014

0.1.2

0.1.2.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz

21/06 2014

0.1.1

0.1.1.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz

21/06 2014

0.1.0

0.1.0.0 https://github.com/mamuz/MamuzContentManager

Provides simple content manager for ZF2 with Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marco Muths

zf2 doctrine cms markdown mamuz