{"id":18321801,"url":"https://github.com/chillerlan/php-bbcode","last_synced_at":"2025-04-05T22:32:31.267Z","repository":{"id":62501707,"uuid":"42739658","full_name":"chillerlan/php-bbcode","owner":"chillerlan","description":"A recursive regexp BBCode parser for PHP 7+","archived":false,"fork":false,"pushed_at":"2019-07-26T19:02:12.000Z","size":440,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T13:21:54.756Z","etag":null,"topics":["bbcode","bbcode-parser","html5","markdown","php","php-library","php7"],"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/chillerlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-18T18:19:07.000Z","updated_at":"2020-03-28T04:33:02.000Z","dependencies_parsed_at":"2022-11-02T09:46:31.183Z","dependency_job_id":null,"html_url":"https://github.com/chillerlan/php-bbcode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-bbcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-bbcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-bbcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-bbcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chillerlan","download_url":"https://codeload.github.com/chillerlan/php-bbcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411234,"owners_count":20934650,"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","html5","markdown","php","php-library","php7"],"created_at":"2024-11-05T18:21:46.985Z","updated_at":"2025-04-05T22:32:30.882Z","avatar_url":"https://github.com/chillerlan.png","language":"PHP","readme":"# chillerlan/php-bbcode\n\nA recursive regexp [BBCode](http://en.wikipedia.org/wiki/BBCode) parser for PHP 7+ using [preg_replace_callback()](http://php.net/preg_replace_callback),\nbased on an example by [MrNiceGuy](http://www.developers-guide.net/forums/member/69,mrniceguy) on\n[developers-guide.net](http://www.developers-guide.net/c/152-bbcode-parser-mit-noparse-tag-selbst-gemacht.html).\nHandles nested tags as well as matching brackets and doesn't stumble across invalid tags.\n\n[![version][packagist-badge]][packagist]\n[![license][license-badge]][license]\n[![Travis][travis-badge]][travis]\n[![Coverage][coverage-badge]][coverage]\n[![Scrunitizer][scrutinizer-badge]][scrutinizer]\n[![Packagist downloads][downloads-badge]][downloads]\n[![PayPal donate][donate-badge]][donate]\n\n[packagist-badge]: https://img.shields.io/packagist/v/chillerlan/php-bbcode.svg?style=flat-square\n[packagist]: https://packagist.org/packages/chillerlan/php-bbcode\n[license-badge]: https://img.shields.io/github/license/chillerlan/php-bbcode.svg?style=flat-square\n[license]: https://github.com/chillerlan/php-bbcode/blob/master/LICENSE\n[travis-badge]: https://img.shields.io/travis/chillerlan/php-bbcode.svg?style=flat-square\n[travis]: https://travis-ci.org/chillerlan/php-bbcode\n[coverage-badge]: https://img.shields.io/codecov/c/github/chillerlan/php-bbcode.svg?style=flat-square\n[coverage]: https://codecov.io/github/chillerlan/php-bbcode\n[scrutinizer-badge]: https://img.shields.io/scrutinizer/g/chillerlan/php-bbcode.svg?style=flat-square\n[scrutinizer]: https://scrutinizer-ci.com/g/chillerlan/php-bbcode\n[downloads-badge]: https://img.shields.io/packagist/dt/chillerlan/php-bbcode.svg?style=flat-square\n[downloads]: https://packagist.org/packages/chillerlan/php-bbcode/stats\n[donate-badge]: https://img.shields.io/badge/donate-paypal-ff33aa.svg?style=flat-square\n[donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WLYUNAT9ZTJZ4\n\n# Requirements\n- PHP 7.2+\n\n# Documentation\n## Installation\n**requires [composer](https://getcomposer.org)**\n\n### *composer.json*\n (note: replace `dev-master` with a [version boundary](https://getcomposer.org/doc/articles/versions.md#summary))\n```json\n{\n\t\"require\": {\n\t\t\"php\": \"\u003e=7.2.0\",\n\t\t\"chillerlan/php-bbcode\": \"dev-master\"\n\t}\n}\n```\n\n### Manual installation\nDownload the desired version of the package from [master](https://github.com/chillerlan/php-bbcode/archive/master.zip) or\n[release](https://github.com/chillerlan/php-bbcode/releases) and extract the contents to your project folder. After that:\n- run `composer install` to install the required dependencies and generate `/vendor/autoload.php`.\n- if you use a custom autoloader, point the namespace `chillerlan\\BBCode` to the folder `src` of the package\n\nProfit!\n\n## Usage\n\n- @todo\n\nFor an [implementation example](https://github.com/codemasher/gw1-database/blob/master/public/gwbbcode.php) see the GWBBCoder over here: [gw1-database/GWBBCode](https://github.com/codemasher/gw1-database/tree/master/src/GWBBCode).\n\n### Language\n - @todo\n\n## Notes\nThe parser may cause some high CPU load, depending on the input. You should never consider to use it somewhere\nin your output subsystem - encode on input - you'll want a preview anyway. ;)\n\nYou may also run into several bugs. In fact, the BBCoder is essentially a tool to squeeze out any PCRE related bug in PHP known to man (and perhaps unknown). Have fun! ;)\n[It is highly recommended to use these php.ini settings](https://github.com/chillerlan/php-bbcode/blob/master/travis-php.ini), especially to disable the PCRE JIT in PHP7 which is a troublemaker.\nIn case you happen to run into a PCRE related bug, i ask you to open an issue over here along with the bbcode which caused the error and further information.\n\n## Disclaimer!\nI don't take responsibility for molten CPUs, smashed keyboards, broken HTML etc.. Use at your own risk!\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WLYUNAT9ZTJZ4"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerlan%2Fphp-bbcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchillerlan%2Fphp-bbcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerlan%2Fphp-bbcode/lists"}