{"id":28764222,"url":"https://github.com/jbowens/jbbcode","last_synced_at":"2025-06-17T09:11:21.447Z","repository":{"id":3398228,"uuid":"4447681","full_name":"jbowens/jBBCode","owner":"jbowens","description":"A lightweight but extensible BBCode parser","archived":false,"fork":false,"pushed_at":"2022-01-30T09:48:09.000Z","size":164,"stargazers_count":164,"open_issues_count":25,"forks_count":32,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-30T01:01:37.542Z","etag":null,"topics":["bbcode","bbcode-parser","php"],"latest_commit_sha":null,"homepage":"http://jbbcode.com","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/jbowens.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":"2012-05-25T16:42:25.000Z","updated_at":"2024-04-09T11:43:02.000Z","dependencies_parsed_at":"2022-08-27T03:08:39.552Z","dependency_job_id":null,"html_url":"https://github.com/jbowens/jBBCode","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jbowens/jBBCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbowens%2FjBBCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbowens%2FjBBCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbowens%2FjBBCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbowens%2FjBBCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbowens","download_url":"https://codeload.github.com/jbowens/jBBCode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbowens%2FjBBCode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326793,"owners_count":22992388,"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","php"],"created_at":"2025-06-17T09:11:19.240Z","updated_at":"2025-06-17T09:11:21.438Z","avatar_url":"https://github.com/jbowens.png","language":"PHP","readme":"jBBCode\n=======\n[![GitHub release](https://img.shields.io/github/release/jbowens/jBBCode.svg)](https://github.com/jbowens/jBBCode/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/jbowens/jBBCode.svg)](https://travis-ci.org/jbowens/jBBCode)\n\njBBCode is a bbcode parser written in php 5.3. It's relatively lightweight and parses\nbbcodes without resorting to expensive regular expressions.\n\nDocumentation\n-------------\n\nFor complete documentation and examples visit [jbbcode.com](http://jbbcode.com).\n\n### A basic example\n\njBBCode includes a few optional, default bbcode definitions that may be loaded through the\n`DefaultCodeDefinitionSet` class. Below is a simple example of using these codes to convert\na bbcode string to html.\n\n```php\n\u003c?php\nrequire_once \"/path/to/jbbcode/Parser.php\";\n\n$parser = new JBBCode\\Parser();\n$parser-\u003eaddCodeDefinitionSet(new JBBCode\\DefaultCodeDefinitionSet());\n\n$text = \"The default codes include: [b]bold[/b], [i]italics[/i], [u]underlining[/u], \";\n$text .= \"[url=http://jbbcode.com]links[/url], [color=red]color![/color] and more.\";\n\n$parser-\u003eparse($text);\n\nprint $parser-\u003egetAsHtml();\n```\n\n### Composer\n\nYou may load jBBCode via composer. In your composer.json file:\n\n```json\n\"require\": {\n    \"jbbcode/jbbcode\": \"1.3.*\"\n}\n```\n\nIn your php file:\n\n```php\nrequire 'vendor/autoloader.php';\n\n$parser = new JBBCode\\Parser();\n```\n\nContribute\n----------\n\nI would love help maintaining jBBCode. Look at [open issues](http://github.com/jbowens/jBBCode/issues) for ideas on\nwhat needs to be done. Before submitting a pull request, verify that all unit tests still pass.\n\n#### Running unit tests\nTo run the unit tests,\nensure that [phpunit](http://github.com/sebastianbergmann/phpunit) is installed, or install it through the composer\ndev dependencies. Then run `phpunit` from the project directory. If you're adding new functionality, writing\nadditional unit tests is a great idea.\n\n\nLicense\n-------\n\nThe project is under MIT license. Please see the [license file](LICENSE.md) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbowens%2Fjbbcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbowens%2Fjbbcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbowens%2Fjbbcode/lists"}