Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanotorresi/mypopup
A very simple Zend Framework 2 module to handle cookie timed popups
https://github.com/stefanotorresi/mypopup
Last synced: 29 days ago
JSON representation
A very simple Zend Framework 2 module to handle cookie timed popups
- Host: GitHub
- URL: https://github.com/stefanotorresi/mypopup
- Owner: stefanotorresi
- License: mit
- Created: 2013-09-06T10:02:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-24T17:57:54.000Z (almost 11 years ago)
- Last Synced: 2024-11-30T07:40:40.837Z (about 1 month ago)
- Language: PHP
- Size: 234 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
#MyPopup
[![Latest Stable Version](https://poser.pugx.org/stefanotorresi/my-popup/v/stable.png)](https://packagist.org/packages/stefanotorresi/my-popup)
[![Latest Unstable Version](https://poser.pugx.org/stefanotorresi/my-popup/v/unstable.png)](https://packagist.org/packages/stefanotorresi/my-popup)
[![Build Status](https://travis-ci.org/stefanotorresi/MyPopup.png?branch=master)](https://travis-ci.org/stefanotorresi/MyPopup)
[![Code Coverage](https://scrutinizer-ci.com/g/stefanotorresi/MyPopup/badges/coverage.png?s=0cdd1fb4bd349efe382e58b888ac637a331c0078)](https://scrutinizer-ci.com/g/stefanotorresi/MyPopup/)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/stefanotorresi/MyPopup/badges/quality-score.png?s=7e8d4aea37e8163e6c868e10924400a4e9469d27)](https://scrutinizer-ci.com/g/stefanotorresi/MyPopup/)A very simple Zend Framework 2 module to handle cookie timed popups.
It basically appends a view template to the response (ala [ZendDeveloperTools](//github.com/zendframework/ZendDeveloperTools) toolbar) only once per any given seconds.
The actual javascript popup functionality is left to the user at the moment, but may come in later.
##Installation
Best way is via [Composer](//getcomposer.org): `composer require stefanotorresi/my-popup:0.*`
You can also either clone the repo via Git or download the tarball and unpack it manually (note: didn't actually test this... besides, use Composer!).Once you have the package, just add the module `MyPopup` to your zf2 `application.config.php`.
##Usage
The module supports two configuration settings:
```php
[
'MyPopup' => [
'timeout' => 604800 // default is one week, in seconds
'template' => 'my-popup/popup' // change this!
],
]
```You will have to take care of registering the template you want to use in the zf2 [`ViewManager`](http://framework.zend.com/manual/2.2/en/modules/zend.view.quick-start.html#configuration).