{"id":22666565,"url":"https://github.com/muhammadsiyab/editorjs-parser-php","last_synced_at":"2025-07-21T20:32:29.376Z","repository":{"id":230779059,"uuid":"780163984","full_name":"MUHAMMADSiyab/editorjs-parser-php","owner":"MUHAMMADSiyab","description":"Parses Editor.js JSON output to HTML","archived":false,"fork":false,"pushed_at":"2024-04-02T11:33:30.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T17:49:25.459Z","etag":null,"topics":["editorjs","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/MUHAMMADSiyab.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-31T21:48:31.000Z","updated_at":"2024-04-22T18:52:09.000Z","dependencies_parsed_at":"2024-03-31T22:24:10.247Z","dependency_job_id":"860500dc-0946-49a0-9bfe-69ee9f11e106","html_url":"https://github.com/MUHAMMADSiyab/editorjs-parser-php","commit_stats":null,"previous_names":["muhammadsiyab/editorjs-parser-php"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUHAMMADSiyab%2Feditorjs-parser-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUHAMMADSiyab%2Feditorjs-parser-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUHAMMADSiyab%2Feditorjs-parser-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUHAMMADSiyab%2Feditorjs-parser-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MUHAMMADSiyab","download_url":"https://codeload.github.com/MUHAMMADSiyab/editorjs-parser-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773731,"owners_count":20993634,"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":["editorjs","parser","php"],"created_at":"2024-12-09T14:16:17.438Z","updated_at":"2025-04-11T21:44:42.479Z","avatar_url":"https://github.com/MUHAMMADSiyab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Editor.js Parser for PHP\n\nThis package allows you to easily parse [Editor.js](https://editorjs.io/) JSON output to HTML using PHP. This package is currently able to parse the blocks from these plugins:\n\n- [Paragraph](https://github.com/editor-js/paragraph)\n- [Header](https://github.com/editor-js/header)\n- [Image](https://github.com/editor-js/image)\n- [Quote](https://github.com/editor-js/quote)\n- [List](https://github.com/editor-js/list)\n- [Nested List](https://github.com/editor-js/nested-list)\n- [Code](https://github.com/editor-js/code)\n- [Embed](https://github.com/editor-js/embed) _(Currently, the following embed blocks are supported)_\n  - Youtube\n  - Facebook\n  - Twitter/X\n  - Instagram\n  - Codepen\n  - Github (gist)\n\n## Requirements\n\nPHP `\u003e=7.4`\n\n## Installation\n\n    composer require muhammadsiyab/editorjs-parser-php\n\n## Using\n\n```php\n\nrequire \"vendor/autoload.php\";\n\n\nuse MuhammadSiyab\\EditorjsParserPhp\\Parser;\n\n\n# The json output generated by Editor.js\n$content = '{\"time\": 1711232666978,\"blocks\": [{...}]}' ;\n\n$parser = new Parser();\n$parsed = $parser-\u003eparse($content);\n\necho $parsed; // outputs the generated HTML\n\n```\n\n### Allow only specific blocks for parsing\n\n```php\n\n# Only parses the `headings` and `paragraphs`\n\n$parsed = $parser\n            -\u003eonly('header', 'paragraph') // can be parsed using the array syntax ['header', 'paragraph']\n            -\u003eparse($content);\n\n```\n\n### Disable specific blocks from being parsed\n\n```php\n\n# Parses all the blocks except `list` and `code`\n\n$parsed = $parser\n            -\u003eexcept('list', 'code') // can be parsed using the array syntax ['list', 'code']\n            -\u003eparse($content);\n\n```\n\n### License\n\nThis Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadsiyab%2Feditorjs-parser-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadsiyab%2Feditorjs-parser-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadsiyab%2Feditorjs-parser-php/lists"}