PHP Classes

BBEngine: Dynamically Extendable BBCode Parser/UnParser

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 938 All time: 3,821 This week: 206Up
Version License PHP version Categories
bbengine 1.0MIT/X Consortium ...5.0HTML, PHP 5, Databases, Templates


This package can be used to convert text with BBCode marks to HTML and vice-versa.

It can find and replace BBCode marks and replace them with HTML tags.

The package can also do the opposite by converting HTML to equivalent text with BBCode marks.

The conversion can be done by custom PHP code.

The list of supported tags can be dynamically extended with new BBCode tags with definitions stored in a database.

The Package can handle 4 types of tags :-

* Direct Words : Directly replace words with others (e.g. smiles)

* Direct Tags : Replace Html Tags with BBCode directly

* Indirect Non Recursive : Mainpulate content in BBCode with user defined function , BBCode tags can't be Nested

* Indirect Recursive : The Same Indirect manner with the added ability of Parsing Nested tags

Picture of Mohammed Yousef
Name: Mohammed Yousef is available for providing paid consulting. Contact Mohammed Yousef .
Classes: 2 packages by
Country: Egypt Egypt
Age: 34
All time rank: 7057 in Egypt Egypt
Week rank: 328 Up7 in Egypt Egypt Equal
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageDB_Layer (2 files)
Files folder imageExamples (3 files)
Plain text file BBE_DB_Op.php Class Class wrapping all DB functionality required by class
Accessible without login Plain text file Config.php Conf. Class Configuration file
Plain text file Gen_Parsing.php Class Class Containing Common Parsing functionality
Plain text file Parse.php Class The BBCode Parsing Class
Plain text file UnParse.php Class BBCode UnParsing Class
Accessible without login Plain text file BBEngine.sql Data The SQL dump for a set of famous BBCodes (required for examples)

  Files folder image Files  /  DB_Layer  
File Role Description
  Plain text file General_DB.php Class Abstract Class for General DB required functionality
  Plain text file MySQL.php Class MySQL Specific Implementation for BBEngine DB required needs

  Files folder image Files  /  Examples  
File Role Description
  Accessible without login Plain text file DB_Tag_Insertion_Examples.php Example Examples for inserting the 4 Tags types into DB
  Accessible without login Plain text file Parsing_Example.php Example Example for Parsing a given BBCode String
  Accessible without login Plain text file UnParsing_Example.php Example Example for UnParsing a given Html String into BBCode

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,821
This week:206Up
User Ratings User Comments (1)
 All time