2017 © Pedro Peláez
 

library jbbcode

A lightweight but extensible BBCode parser written in PHP 5.3.

image

jbbcode/jbbcode

A lightweight but extensible BBCode parser written in PHP 5.3.

  • Monday, April 17, 2017
  • by Fale
  • Repository
  • 23 Watchers
  • 143 Stars
  • 102,139 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 33 Forks
  • 24 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

jBBCode

GitHub release Software License Build Status, (*1)

jBBCode is a bbcode parser written in php 5.3. It's relatively lightweight and parses bbcodes without resorting to expensive regular expressions., (*2)

Documentation

For complete documentation and examples visit jbbcode.com., (*3)

A basic example

jBBCode includes a few optional, default bbcode definitions that may be loaded through the DefaultCodeDefinitionSet class. Below is a simple example of using these codes to convert a bbcode string to html., (*4)

<?php
require_once "/path/to/jbbcode/Parser.php";

$parser = new JBBCode\Parser();
$parser->addCodeDefinitionSet(new JBBCode\DefaultCodeDefinitionSet());

$text = "The default codes include: [b]bold[/b], [i]italics[/i], [u]underlining[/u], ";
$text .= "[url=http://jbbcode.com]links[/url], [color=red]color![/color] and more.";

$parser->parse($text);

print $parser->getAsHtml();

Composer

You may load jBBCode via composer. In your composer.json file:, (*5)

"require": {
    "jbbcode/jbbcode": "1.3.*"
}

In your php file:, (*6)

require 'vendor/autoloader.php';

$parser = new JBBCode\Parser();

Contribute

I would love help maintaining jBBCode. Look at open issues for ideas on what needs to be done. Before submitting a pull request, verify that all unit tests still pass., (*7)

Running unit tests

To run the unit tests, ensure that phpunit is installed, or install it through the composer dev dependencies. Then run phpunit from the project directory. If you're adding new functionality, writing additional unit tests is a great idea., (*8)

License

The project is under MIT license. Please see the license file for details., (*9)

The Versions

17/04 2017

dev-master

9999999-dev http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

06/07 2014

v1.3.0

1.3.0.0 http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

09/08 2013

v1.2.1

1.2.1.0 http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

25/05 2013

v1.2.0

1.2.0.0 http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

24/05 2013

v1.1.1

1.1.1.0 http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

22/05 2013

v1.1

1.1.0.0 http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb

22/05 2013

dev-new-parser

dev-new-parser http://jbbcode.com/

A lightweight but extensible BBCode parser written in PHP 5.3.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

bbcode bb