{"id":13623721,"url":"https://github.com/milesj/decoda","last_synced_at":"2025-05-16T16:01:24.825Z","repository":{"id":57017962,"uuid":"466018","full_name":"milesj/decoda","owner":"milesj","description":"A lightweight lexical string parser for BBCode styled markup.","archived":false,"fork":false,"pushed_at":"2022-11-10T18:42:42.000Z","size":1597,"stargazers_count":196,"open_issues_count":9,"forks_count":52,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-06T13:48:56.470Z","etag":null,"topics":["bbcode","bbcode-parser","decoda","emoticons","filters","hooks","lexical-parser","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milesj.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-01-10T09:17:38.000Z","updated_at":"2025-04-12T00:34:43.000Z","dependencies_parsed_at":"2022-08-22T11:30:57.438Z","dependency_job_id":null,"html_url":"https://github.com/milesj/decoda","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesj%2Fdecoda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesj%2Fdecoda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesj%2Fdecoda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milesj%2Fdecoda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milesj","download_url":"https://codeload.github.com/milesj/decoda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253069112,"owners_count":21848923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbcode","bbcode-parser","decoda","emoticons","filters","hooks","lexical-parser","php"],"created_at":"2024-08-01T21:01:34.920Z","updated_at":"2025-05-16T16:01:24.770Z","avatar_url":"https://github.com/milesj.png","language":"PHP","readme":"# Decoda\n\n[![Build Status](https://travis-ci.org/milesj/decoda.png?branch=master)](https://travis-ci.org/milesj/decoda)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.3-8892BF.svg)](https://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/mjohnson/decoda/v/stable.svg)](https://packagist.org/packages/mjohnson/decoda)\n[![PHPStan](https://img.shields.io/badge/PHPStan-level%208-brightgreen.svg?style=flat)](https://phpstan.org/)\n[![License](https://poser.pugx.org/mjohnson/decoda/license)](https://packagist.org/packages/mjohnson/decoda)\n\nA lightweight lexical string parser for BBCode styled markup.\n\n## Contributors\n\n- \"Marten-Plain\" emoticons by Mårten Lundin - http://adiumxtras.com/index.php?a=xtras\u0026xtra_id=6920\n- \"HTML_BBCodeParser\" by Seth Price - http://pear.php.net/package/HTML_BBCodeParser/\n\n## Framework Integrations\n- CakePHP - using [Markup plugin](https://github.com/dereuromark/cakephp-markup).\n- Symfony - using [FMBbCodeBundle](https://github.com/helios-ag/FMBbCodeBundle).\n\n## Features\n\n- Parses custom code to valid (X)HTML markup\n- Setting to make links and emails auto-clickable\n- Setting to use shorthand text for links and emails\n- Filters to parse markup and custom code\n- Hooks to execute callbacks during the parsing cycle\n- Loaders to load resources and files for configuration\n- Engines to render complex markup using a template system\n- Can censor offensive words\n- Can convert smiley faces into images\n- Basic support for localized messages\n- Parser result caching\n- Supports a wide range of tags\n- Parent child node hierarchy\n- Fixes incorrectly nested tags by removing the broken/unclosed tags\n- Self closing tags\n- Logs errors for validation\n- Tag and attribute aliasing\n\n## Filters\n\nThe following filters and supported tags are available.\n\n- Default - b, i, u, s, sup, sub, br, hr, abbr, time\n- Block - align, float, hide, alert, note, div, spoiler, left, right, center, justify\n- Code - code, source, var\n- Email - email, mail\n- Image - image, img\n- List - list, olist, ol, ul, li, \\*\n- Quote - quote\n- Text - font, size, color, h1-h6\n- Url - url, link\n- Video - video, youtube, vimeo, veoh, liveleak, dailymotion, myspace, wegame, collegehumor\n- Table - table, thead, tbody, tfoot, tr, td, th, row, col\n\n## Hooks\n\nThe following hooks are available.\n\n- Censor - Censors all words found within config/censored\n- Clickable - Converts all non-tag wrapped URLs and emails into clickable links\n- Emoticon - Converts all smilies found within config/emoticons into emoticon images\n\n## Storage Engines\n\nThe following caching layers are supported.\n\n- In-Memory\n- Memcache\n- Redis\n\n## Installation and Usage\nSee [docs](/docs).\n","funding_links":[],"categories":["Table of Contents","目录","PHP","Markup","标记 Markup"],"sub_categories":["Markup","标记和CSS Markup and CSS","Markup and CSS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesj%2Fdecoda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilesj%2Fdecoda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilesj%2Fdecoda/lists"}