{"id":13770809,"url":"https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle","last_synced_at":"2025-05-11T03:32:54.270Z","repository":{"id":37957727,"uuid":"356417254","full_name":"SyntaxPhoenix/editorjs-symfony-parser-bundle","owner":"SyntaxPhoenix","description":"A symfony bundle to parse data generated by EditorJS","archived":false,"fork":false,"pushed_at":"2023-09-02T22:04:42.000Z","size":163,"stargazers_count":21,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T03:10:19.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyntaxPhoenix.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-04-09T22:56:56.000Z","updated_at":"2024-11-06T08:49:10.000Z","dependencies_parsed_at":"2024-01-06T20:55:21.755Z","dependency_job_id":null,"html_url":"https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle","commit_stats":{"total_commits":41,"total_committers":5,"mean_commits":8.2,"dds":0.4878048780487805,"last_synced_commit":"2216904497c310ab1dbed5a3ef06ed7649d0a44c"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxPhoenix%2Feditorjs-symfony-parser-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxPhoenix%2Feditorjs-symfony-parser-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxPhoenix%2Feditorjs-symfony-parser-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxPhoenix%2Feditorjs-symfony-parser-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyntaxPhoenix","download_url":"https://codeload.github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":[],"created_at":"2024-08-03T17:00:42.338Z","updated_at":"2025-05-11T03:32:53.957Z","avatar_url":"https://github.com/SyntaxPhoenix.png","language":"PHP","funding_links":[],"categories":["Libraries"],"sub_categories":["PHP"],"readme":"[![Contributors][contributors-shield]][contributors-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![GPLv3 License][license-shield]][license-url]\n \n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle\"\u003e\n    \u003cimg src=\"https://cdn.syntaxphoenix.com/images/logo.png\" alt=\"Logo\" width=\"192\" height=\"192\"/\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eEditorJS Symfony Parser Bundle\u003c/h3\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003e\u003ch2 style=\"display: inline-block\"\u003eTable of Contents\u003c/h2\u003e\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e \n        \u003cli\u003e\u003ca href=\"#supported-plugins\"\u003eSupported plugins\u003c/a\u003e\u003c/li\u003e \n        \u003cli\u003e\u003ca href=\"#methods\"\u003eMethods\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\nThe EditorJS-ParserBundle parses editorjs-configs [Editor.js](https://editorjs.io/ \"Editor.js Homepage\"). It is designed to be best integrated in Symfony and also offers a Twig-Extension. The bundle is based on [Durlecode/editorjs-simple-html-parser](https://github.com/Durlecode/editorjs-simple-html-parser), but strongly improved the parsing by using an object-oriented approach.\n\n\n### Built With\n\n* [editorjs-simple-html-parser](https://github.com/Durlecode/editorjs-simple-html-parser)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Usage\n\n```php\nuse SyntaxPhoenix\\EJSParserBundle\\Parser\\EditorjsParser;\n\n$parser = new EditorjsParser($data);\n$html = $parser-\u003etoHtml();\n```\n\nWhere `$data` is the clean JSON data coming from Editor.js *See `$data` example below*\n\n```json\n{\n    \"time\" : 1583848289745,\n    \"blocks\" : [\n        {\n            \"type\" : \"header\",\n            \"data\" : {\n                \"text\" : \"Hello World\",\n                \"level\" : 2\n            }\n        }\n    ],\n    \"version\" : \"2.16.1\"\n}\n```\n\n### Installation\n\n```\ncomposer require syntaxphoenix/editorjs-symfony-parser-bundle\n```\n\n\n## Supported Plugins\n\nPackage | Key | Main CSS Class\n--- | --- | ---\n\u003ca href=\"https://github.com/editor-js/code\"\u003e@editorjs/code\u003c/a\u003e | `code` | `.prs-code`\n\u003ca href=\"https://github.com/editor-js/embed\"\u003e@editorjs/embed\u003c/a\u003e | `embed` | `.prs-embed`\n\u003ca href=\"https://github.com/editor-js/delimiter\"\u003e@editorjs/delimiter\u003c/a\u003e | `delimiter` | `.prs-delimiter`\n\u003ca href=\"https://github.com/editor-js/header\"\u003e@editorjs/header\u003c/a\u003e | `header` | `.prs-h{header-level}`\n\u003ca href=\"https://github.com/editor-js/link\"\u003e@editorjs/link\u003c/a\u003e | `link` | `.prs-link`\n\u003ca href=\"https://github.com/editor-js/list\"\u003e@editorjs/list\u003c/a\u003e | `list` | `.prs-list`\n\u003ca href=\"https://github.com/editor-js/paragraph\"\u003e@editorjs/paragraph\u003c/a\u003e | `paragraph` | `.prs-paragraph`\n\u003ca href=\"https://github.com/editor-js/raw\"\u003e@editorjs/raw\u003c/a\u003e | `raw` | \n\u003ca href=\"https://github.com/editor-js/simple-image\"\u003e@editorjs/simple-image\u003c/a\u003e | `simpleImage` | `.prs-image`\n\u003ca href=\"https://github.com/editor-js/image\"\u003e@editorjs/image\u003c/a\u003e | `image` | `.prs-image`\n\u003ca href=\"https://github.com/editor-js/warning\"\u003e@editorjs/warning\u003c/a\u003e | `warning` | `.prs-warning`\n\u003ca href=\"https://github.com/editor-js/table\"\u003e@editorjs/table\u003c/a\u003e | `table` | `.prs-table`\n\u003ca href=\"https://github.com/vishaltelangre/editorjs-alert\"\u003eeditorjs-alert\u003c/a\u003e | `alert` | `.prs-alert` + `.prs-alert-{type}`\n\u003ca href=\"https://github.com/yuanwei92/editorjs-youtube-embed\"\u003eeditorjs-youtube-embed\u003c/a\u003e | `youtubeembed` | `.prs-youtubeembed`\n\nIf you want to add a new Parser for a specific editorjs-plugin you can fork the master and make a pull-request. Please also change the readme in that case and add the parser you have edited. \n\n\n## Methods \n\n#### `toHtml()`\nReturn generated HTML\n\n### Generated HTML\n\n##### Code\n\n```html\n\u003cdiv class=\"prs-code\"\u003e\n    \u003cpre\u003e\n        \u003ccode\u003e\u003c/code\u003e\n    \u003c/pre\u003e\n\u003c/div\u003e\n```\n\n##### Embed \n###### *(Actually working with Youtube, Codepen \u0026 Gfycat)*\n\n```html\n\u003cdiv class=\"prs-embed\"\u003e\n    \u003ciframe src=\"\" height=\"300\"\u003e\u003c/iframe\u003e\n\u003c/div\u003e\n```\n\n##### Delimiter\n\n```html\n\u003chr class=\"prs-delimiter\"\u003e\n```\n\n##### Header\n\n```html\n\u003ch2 class=\"prs-h2\"\u003eLorem\u003c/h2\u003e\n```\n\n##### Link\n\n```html\n\u003ca href=\"https://github.com/\" target=\"_blank\" class=\"prs-link\"\u003e\n    \u003cdiv class=\"prs-link-container-with-img\"\u003e\n        \u003cdiv class=\"prs-link-title\"\u003eTitle\u003c/div\u003e\n        \u003cdiv class=\"prs-link-description\"\u003eDescription\u003c/div\u003e\n        \u003cdiv class=\"prs-link-url\"\u003ehttps://example.com/\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"prs-link-img-container\"\u003e\n        \u003cimg src=\"https://example.com/cat.png\" alt=\"\"\u003e\n    \u003c/div\u003e\n\u003c/a\u003e\n```\n\n##### Ordered List\n\n```html\n\u003cdiv class=\"prs-list\"\u003e\n    \u003col\u003e\n        \u003cli\u003e\u003c/li\u003e\n    \u003c/ol\u003e\n\u003c/div\u003e\n```\n\n##### Unordered List\n\n```html\n\u003cdiv class=\"prs-list\"\u003e\n    \u003cul\u003e\n        \u003cli\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\u003c/div\u003e\n```\n\n##### Paragraph\n\n```html\n\u003cp class=\"prs-paragraph\"\u003e\n    \u003ccode class=\"inline-code\"\u003ePellentesque\u003c/code\u003e \n    \u003ci\u003emalesuada fames\u003c/i\u003e \n    \u003cmark class=\"cdx-marker\"\u003etempus\u003c/mark\u003e\n\u003c/p\u003e\n```\n\n##### Image\n\n```html\n\u003cfigure class=\"prs-image\"\u003e\n    \u003cimg src=\"\" class=\"prs-image-border prs-image-background\" alt=\"\"\u003e\n    \u003cfigcaption\u003e\u003c/figcaption\u003e\n\u003c/figure\u003e\n```\n\n##### Warning\n\n```html\n\u003cdiv class=\"prs-warning\"\u003e\n    \u003cion-icon name=\"information-outline\" size=\"large\" aria-label=\"information outline\"\u003e\u003c/ion-icon\u003e\n    \u003cdiv\u003e\n        \u003cp\u003eTitle\u003c/p\u003e\n        \u003cp\u003eMessage\u003c/p\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n##### Raw\n\n```html\n\u003cdiv class=\"prs-raw\"\u003e\n    Raw HTML ...\n\u003c/div\u003e\n```\n\n##### Alert\n\n```html\n\u003cdiv class=\"prs-alert prs-alert-{type}\"\u003e\n \u003cdiv\u003eMy Text\u003c/div\u003e\n\u003c/div\u003e\n```\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the GPLv3 License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\n[@SyntaxPhoenix](https://twitter.com/SyntaxPhoenix) - support@syntaxphoenix.com\n\nProject Link: [https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle](https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle)\n\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/SyntaxPhoenix/editorjs-symfony-parser-bundle.svg?style=flat-square\n[contributors-url]: https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/graphs/contributors\n[stars-shield]: https://img.shields.io/github/stars/SyntaxPhoenix/editorjs-symfony-parser-bundle.svg?style=flat-square\n[stars-url]: https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/stargazers\n[issues-shield]: https://img.shields.io/github/issues/SyntaxPhoenix/editorjs-symfony-parser-bundle.svg?style=flat-square\n[issues-url]: https://github.com/SyntaxPhoenix/editorjs-symfony-parser-bundle/issues\n[license-shield]: https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat-square\n[license-url]: https://www.gnu.org/licenses/gpl-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSyntaxPhoenix%2Feditorjs-symfony-parser-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSyntaxPhoenix%2Feditorjs-symfony-parser-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSyntaxPhoenix%2Feditorjs-symfony-parser-bundle/lists"}