Download the PHP package rkeet/zf-form-markdown without Composer
On this page you can find all versions of the php package rkeet/zf-form-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rkeet/zf-form-markdown
More information about rkeet/zf-form-markdown
Files in rkeet/zf-form-markdown
Download rkeet/zf-form-markdown
More information about rkeet/zf-form-markdown
Files in rkeet/zf-form-markdown
Vendor rkeet
Package zf-form-markdown
Short Description Provides Form Element 'Markdown', to be used within Zend Framework 3 with Zend Form.
License MIT
Homepage https://keet.me/
Package zf-form-markdown
Short Description Provides Form Element 'Markdown', to be used within Zend Framework 3 with Zend Form.
License MIT
Homepage https://keet.me/
Please rate this library. Is it a good library?
Informations about the package zf-form-markdown
ZF Form Element Markdown
Provides the ability to use markdown
as a type of input element.
Setup
Require module
To install the latest release, using Composer, run:
composer require rkeet/zf-form-markdown
Enable modules
To enable this module, enable both this module and AssetManager. In modules.config.php
add the following:
'AssetManager',
'Keet\Markdown',
Usage in Form / Fieldset
Element provides an HTML <textarea>
element and paired <div>
element to render
a preview of whatever is entered in text area.
use Keet\Markdown\Form\Element\Markdown;
...
$this->add(
[
'name' => 'body',
'type' => Markdown::class,
'options' => [
'label' => 'Body',
],
'attributes' => [
'rows' => 4,
],
]
);
Module requirements:
- Zend Form to extend
- Parsedown for PHP side parsing to HTML
- ShowdownJS for client side parsing to HTML for preview
- AssetManager to inject JS with ViewHelper
Features
- Provides Service (
MarkdownService
) for handling markdown conversion server-side - Provides a ZF Form Element (
Markdown
) for Form input- Provides Showdown to client when using
Markdown
Form Element
- Provides Showdown to client when using
TODO's
- Create better preview - possibly:
- option: inject some overridable default styling
- option: side-by-side preview instead of above/below
- option: minimum (overridable) styling to always have a visible preview container
- Figure out incompatibilities between Parsedown and ShowdownJS
All versions of zf-form-markdown with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2 || ^7.3
zendframework/zend-servicemanager Version ^2.7.8 || ^3.4
zendframework/zend-form Version ^2.14
erusev/parsedown Version ^1.7
rwoverdijk/assetmanager Version ^1.8
zendframework/zend-servicemanager Version ^2.7.8 || ^3.4
zendframework/zend-form Version ^2.14
erusev/parsedown Version ^1.7
rwoverdijk/assetmanager Version ^1.8
The package rkeet/zf-form-markdown contains the following files
Loading the files please wait ....