Download the PHP package krisanalfa/bono-markdown without Composer

On this page you can find all versions of the php package krisanalfa/bono-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bono-markdown

Markdown Support for Bono Based Project

This package will make you able to use markdown as Norm schema or input type markdown in your Bono Based Project.

Note: This package required PHP >5.4

Installation

Add this package to your composer.json file

Register Bono Markdown provider to your Bono provider configuration:

Note: For another config options, see the Config section below.

Example Usage

Input form use Bootstrap 3 as it's theme, if you want to override this one, you should use custom view, and render your own partial template there.

Options

Below is complete example of available option for your Markdown configuration:

Options –– gfm

Enable Github Flavored Markdown, default is false

Options –– service

If you want to enable web service that able to parse markdown set this to true, default is false

Options –– endpoint

The endpoint URL of your web service, require service to true, default is md

Options –– requestKeyName

The request key name for your web service, default is markdown

Options –– view

Your custom view engine, default is Slim\View

Options –– partialTemplatePath

Your custom partial template, default is not set (using our own partials)

Norm Schema

You can also use this package as Norm schema. Be caution, when you call formatInput() method, the method calls $app->container['markdown.form']->renderInput($markdown) method; the default partial still use _markdown/form and Slim\View view engine. So, if you want to override this behavior, you must set your own view in config file:

Note: Make sure your custom view is an extends from Slim\View

Web Service

To enable this feature, you have to change your config, and set service to true. Access them via POST request. This is a simple javascript example to access your webservice:

Note: As you see, the given URL, /md is based on your endpoint configuration.

Another Hack

Form input use Slim\View to fetch and load the view. If you want to change this default, you can use $app->container['markdown.form']->setView($view).

One more. The default partials to render is _markdown/form, if you want to render another partials, just pass a second argument in Form::renderInput() method. Example:

For more information, see Bono\Markdown\Helper\Form.php file.

Note: Your custom view should an extends from Slim\View


All versions of bono-markdown with dependencies

PHP Build Version
Package Version
Requires kzykhys/ciconia Version ~1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package krisanalfa/bono-markdown contains the following files

Loading the files please wait ....