{"id":21866236,"url":"https://github.com/alaminfirdows/laravel-editorjs","last_synced_at":"2025-04-05T06:05:26.927Z","repository":{"id":56943595,"uuid":"408700384","full_name":"alaminfirdows/laravel-editorjs","owner":"alaminfirdows","description":"A simple editor.js html parser for Laravel","archived":false,"fork":false,"pushed_at":"2024-10-22T06:40:41.000Z","size":49,"stargazers_count":40,"open_issues_count":5,"forks_count":17,"subscribers_count":5,"default_branch":"2.x","last_synced_at":"2025-03-29T05:05:42.413Z","etag":null,"topics":["editor","editorjs","editorjs-tool","eloquent","hacktoberfest","laravel","laravel-package","parser"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/alaminfirdows/laravel-editorjs","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/alaminfirdows.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-09-21T05:37:49.000Z","updated_at":"2025-03-28T16:16:50.000Z","dependencies_parsed_at":"2024-10-23T02:37:08.741Z","dependency_job_id":null,"html_url":"https://github.com/alaminfirdows/laravel-editorjs","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.1428571428571429,"last_synced_commit":"a2a264370c00e5c4734676b132344c336fa7ccd7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaminfirdows%2Flaravel-editorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaminfirdows%2Flaravel-editorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaminfirdows%2Flaravel-editorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaminfirdows%2Flaravel-editorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alaminfirdows","download_url":"https://codeload.github.com/alaminfirdows/laravel-editorjs/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294538,"owners_count":20915340,"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":["editor","editorjs","editorjs-tool","eloquent","hacktoberfest","laravel","laravel-package","parser"],"created_at":"2024-11-28T04:24:46.279Z","updated_at":"2025-04-05T06:05:26.910Z","avatar_url":"https://github.com/alaminfirdows.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://user-images.githubusercontent.com/30468274/162574530-f9af87ef-79d4-41de-8ddb-9ebf60563ac9.png)\n\n# Laravel-Editor.js\n\nA simple editor.js html parser for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/alaminfirdows/laravel-editorjs.svg?style=for-the-badge)](https://packagist.org/packages/alaminfirdows/laravel-editorjs)\n[![Total Downloads](https://img.shields.io/packagist/dt/alaminfirdows/laravel-editorjs.svg?style=for-the-badge)](https://packagist.org/packages/alaminfirdows/laravel-editorjs)\n\n## Features\n- Render Editor.js output\n- Custom block rendering\n\n## Demo\nYou can can play with the demo [here](https://github.com/alaminfirdows/laravel-editorjs-demo)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require alaminfirdows/laravel-editorjs\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel_editorjs-config\"\n```\n\nOptionally, you can publish the views using\n\n```bash\nphp artisan vendor:publish --tag=\"laravel_editorjs-views\"\n```\n\n## Usage\n\n```php\nuse App\\Models\\Post;\n\n$post = Post::find(1);\necho LaravelEditorJs::render($post-\u003ebody);\n```\n\nDefining An Accessor\n\n```php\n\u003c?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse AlAminFirdows\\LaravelEditorJs\\Facades\\LaravelEditorJs;\n\nclass Post extends Model\n{\n    public function getBodyAttribute()\n    {\n        return LaravelEditorJs::render($this-\u003eattributes['body']);\n    }\n}\n\n$post = Post::find(1);\necho $post-\u003ebody;\n```\n\n## Versioning\n\n| Laravel    | Supported |\n| ---------- | --------- |\n| 10.x, 11.x | ✅ 2.x    |\n| 9.x        | ✅ 1.1    |\n| 8.x        | ✅ 1.0    |\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Al-Amin Firdows](https://github.com/alaminfirdows)\n- [All Contributors](../../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%2Falaminfirdows%2Flaravel-editorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falaminfirdows%2Flaravel-editorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falaminfirdows%2Flaravel-editorjs/lists"}