{"id":37002748,"url":"https://github.com/ivuorinen/bbcodeparser","last_synced_at":"2026-01-14T00:30:26.223Z","repository":{"id":38821663,"uuid":"136148477","full_name":"ivuorinen/bbcodeparser","owner":"ivuorinen","description":"Parse your BBCode easy with this library.","archived":false,"fork":false,"pushed_at":"2025-08-15T04:39:32.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T06:22:35.938Z","etag":null,"topics":["bbcode","bbcode-parser","laravel","laravel-package","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/ivuorinen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-05T08:50:56.000Z","updated_at":"2025-08-15T04:39:35.000Z","dependencies_parsed_at":"2024-01-18T01:27:44.167Z","dependency_job_id":"21a2875f-270e-449a-9bbe-37939b2f3754","html_url":"https://github.com/ivuorinen/bbcodeparser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ivuorinen/bbcodeparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivuorinen%2Fbbcodeparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivuorinen%2Fbbcodeparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivuorinen%2Fbbcodeparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivuorinen%2Fbbcodeparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivuorinen","download_url":"https://codeload.github.com/ivuorinen/bbcodeparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivuorinen%2Fbbcodeparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","laravel","laravel-package","parser","php"],"created_at":"2026-01-14T00:30:19.623Z","updated_at":"2026-01-14T00:30:26.053Z","avatar_url":"https://github.com/ivuorinen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Version](https://img.shields.io/github/release/ivuorinen/bbcodeparser.svg?style=flat-square)](https://github.com/ivuorinen/bbcodeparser/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/ivuorinen/bbcodeparser/master.svg?style=flat-square)](https://travis-ci.org/ivuorinen/bbcodeparser)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/ivuorinen/bbcodeparser/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ivuorinen/bbcodeparser/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/ivuorinen/bbcodeparser/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ivuorinen/bbcodeparser)\n[![Total Downloads](https://img.shields.io/packagist/dt/ivuorinen/bbcodeparser.svg?style=flat-square)](https://packagist.org/packages/ivuorinen/bbcodeparser)\n\nThe `ivuorinen\\BBCodeParser` package will help you with parsing BBCode.\nThis package is build on work by [Joseph Landberg](https://github.com/golonka).\n\n## Install\n\nVia Composer\n\n```\ncomposer require ivuorinen/bbcodeparser\n```\n\n## Usage\n\nTo parse some text it's as easy as this!\n\n```php\n$bbcode = new ivuorinen\\BBCode\\BBCodeParser();\n\necho $bbcode-\u003eparse('[b]Bold Text![/b]');\n// \u003cstrong\u003eBold Text!\u003c/strong\u003e\n```\n\nWould like the parser to not use all bbcodes? Just do like this.\n\n```php\n$bbcode = new ivuorinen\\BBCode\\BBCodeParser();\n\necho $bbcode\n    -\u003eonly('bold', 'italic')\n    -\u003eparse('[b][u]Bold[/u] [i]Italic[/i]![/b]'); // \u003cstrong\u003e[u]Bold[/u] \u003cem\u003eItalic\u003c/em\u003e!\u003c/strong\u003e\n\necho $bbcode\n    -\u003eexcept('bold')\n    -\u003eparse('[b]Bold[/b] [i]Italic[/i]'); // [b]Bold[/b] \u003cem\u003eItalic\u003c/em\u003e\n```\n\nBy default, the parser is case-sensitive. But if you would like the parser\nto accept tags like `[B]Bold Text[/B]` it's really easy.\n\n```php\n$bbcode = new ivuorinen\\BBCode\\BBCodeParser();\n\n// Case insensitive\necho $bbcode-\u003eparse('[b]Bold[/b] [I]Italic![/I]', true); // \u003cstrong\u003eBold\u003c/strong\u003e \u003cem\u003eItalic!\u003c/em\u003e\n\n// Or like this:\necho $bbcode-\u003eparseCaseInsensitive('[b]Bold[/b] [i]Italic[/i]'); // \u003cstrong\u003eBold\u003c/strong\u003e \u003cem\u003eItalic!\u003c/em\u003e\n```\n\nYou could also make it more explicit that the parser is case-sensitive by using another helper function.\n\n```php\n$bbcode = new ivuorinen\\BBCode\\BBCodeParser();\n\necho $bbcode-\u003eparseCaseSensitive('[b]Bold[/b] [I]Italic![/I]'); // \u003cstrong\u003eBold\u003c/strong\u003e [I]Italic![/I]\n```\n\nIf you would like to completely remove all BBCode it's just one function call away.\n\n```php\n$bbcode = new ivuorinen\\BBCode\\BBCodeParser();\n\necho $bbcode-\u003estripBBCodeTags('[b]Bold[/b] [i]Italic![/i]'); // Bold Italic!\n```\n\n## Laravel integration\n\nThe integration into Laravel is really easy, and the method is the same for both Laravel 4 and Laravel 5.\nThis package supports Laravel Package Auto-Discovery, so it should be picked up automatically.\n\nIf you don't want auto-discovery, or because of old habits, just open your ``app.php`` config file.\n\nIn there you just add this to your providers array\n\n```php\n'ivuorinen\\BBCode\\BBCodeParserServiceProvider'\n```\n\nAnd this to your facades array\n\n```php\n'BBCode' =\u003e 'ivuorinen\\BBCode\\Facades\\BBCodeParser'\n```\n\nThe syntax is the same as if you would use it in vanilla PHP but with the ``BBCode::`` before the methods.\nHere are some examples.\n\n```php\n// Simple parsing\necho BBCode::parse('[b]Bold Text![/b]');\n\n// Limiting the parsers with the only method\necho BBCode::only('bold', 'italic')\n        -\u003eparse('[b][u]Bold[/u] [i]Italic[/i]![/b]'); // \u003cstrong\u003e[u]Bold[/u] \u003cem\u003eItalic\u003c/em\u003e!\u003c/strong\u003e\n\n// Or the except method\necho BBCode::except('bold')\n        -\u003eparse('[b]Bold[/b] [i]Italic[/i]'); // [b]Bold[/b] \u003cem\u003eItalic\u003c/em\u003e\n```\n\n## Testing\n\n``` bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Ismo Vuorinen](https://github.com/ivuorinen)\n- [Joseph Landberg](https://github.com/golonka)\n- [All Contributors](https://github.com/ivuorinen/bbcodeparser/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivuorinen%2Fbbcodeparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivuorinen%2Fbbcodeparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivuorinen%2Fbbcodeparser/lists"}