{"id":21963841,"url":"https://github.com/agence-adeliom/easy-editor-bundle","last_synced_at":"2025-04-24T00:22:58.212Z","repository":{"id":39800784,"uuid":"399090663","full_name":"agence-adeliom/easy-editor-bundle","owner":"agence-adeliom","description":"A Symfony bundle for EasyAdmin that provide a flexible content editor","archived":false,"fork":false,"pushed_at":"2025-03-19T19:55:57.000Z","size":474,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"2.x","last_synced_at":"2025-04-20T00:45:48.583Z","etag":null,"topics":["easyadmin","editor","flexible-content","symfony"],"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/agence-adeliom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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-08-23T12:11:10.000Z","updated_at":"2025-03-19T19:04:37.000Z","dependencies_parsed_at":"2023-12-08T15:00:22.545Z","dependency_job_id":"2b75bb62-5e8a-481e-918c-a2582f5538ba","html_url":"https://github.com/agence-adeliom/easy-editor-bundle","commit_stats":{"total_commits":200,"total_committers":4,"mean_commits":50.0,"dds":0.26,"last_synced_commit":"4cb285dc9f790ca87d47a665fa1053ed38fbc674"},"previous_names":[],"tags_count":118,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Feasy-editor-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Feasy-editor-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Feasy-editor-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Feasy-editor-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agence-adeliom","download_url":"https://codeload.github.com/agence-adeliom/easy-editor-bundle/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536266,"owners_count":21446704,"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":["easyadmin","editor","flexible-content","symfony"],"created_at":"2024-11-29T11:44:14.342Z","updated_at":"2025-04-24T00:22:58.197Z","avatar_url":"https://github.com/agence-adeliom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![Adeliom](https://adeliom.com/public/uploads/2017/09/Adeliom_logo.png)\n[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=agence-adeliom_easy-editor-bundle)](https://sonarcloud.io/dashboard?id=agence-adeliom_easy-editor-bundle)\n\n# Easy Editor Bundle\n\nProvide a flexible content editor for Easyadmin.\n\n\n## Features\n\n- Ability to create custom blocks\n- Twig extension to render the content\n\n## Versions\n\n| Repository Branch | Version | Symfony Compatibility | PHP Compatibility | Status                     |\n|-------------------|---------|-----------------------|-------------------|----------------------------|\n| `3.x`             | `3.x`   | `6.4`, and `7.x`      | `8.2` or higher    | New features and bug fixes |\n| `2.x`             | `2.x`   | `5.4`, and `6.x`      | `8.0.2` or higher | Bug fixes                              |\n| `1.x`             | `1.x`   | `4.4`, and `5.x`      | `7.2.5` or higher | No longer maintained       |\n\n## Installation with Symfony Flex\n\nAdd our recipes endpoint\n\n```json\n{\n  \"extra\": {\n    \"symfony\": {\n      \"endpoint\": [\n        \"https://api.github.com/repos/agence-adeliom/symfony-recipes/contents/index.json?ref=flex/main\",\n        ...\n        \"flex://defaults\"\n      ],\n      \"allow-contrib\": true\n    }\n  }\n}\n```\n\nInstall with composer\n\n```bash\ncomposer require agence-adeliom/easy-editor-bundle\n```\n\n## Documentation\n\n### Usage\n\n#### Entity\n\n```php\nclass Article\n{\n    #[ORM\\Column(name: 'content', type: \\Doctrine\\DBAL\\Types\\Types::JSON, nullable: true)]\n    private $content = [];\n}\n```\n\n#### CRUD Controller\n```php\nclass ArticleCrudController extends AbstractCrudController\n{\n    // Add the custom form theme\n    public function configureCrud(Crud $crud): Crud\n    {\n        return $crud\n            -\u003eaddFormTheme('@EasyEditor/form/editor_widget.html.twig')\n            ;\n    }\n\n    public function configureFields(string $pageName): iterable\n    {\n        yield EasyEditorField::new('content');\n    }\n}\n```\n\n#### Twig template\n```php\n{% for block in object.content %}\n    {{ easy_editor_block(block) }}\n{% endfor %}\n```\n\n### Create a new type\n\n```bash\nbin/console make:block\n```\n\n### Events\n\n#### easy_editor.render_block\n```php\nuse Symfony\\Contracts\\EventDispatcher\\Event;\n\n$dispatcher-\u003eaddListener('easy_editor.render_block', function (Event $event) {\n    // will be executed when the easy_editor.render_block event is dispatched\n\n    // Get\n    $block = $event-\u003egetArgument('block');\n    $settings = $event-\u003egetArgument('settings');\n\n    // Set\n    $event-\u003esetArgument(\"block\", $block);\n    $event-\u003esetArgument(\"settings\", $settings);\n});\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n## Authors\n\n- [@arnaud-ritti](https://github.com/arnaud-ritti)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagence-adeliom%2Feasy-editor-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagence-adeliom%2Feasy-editor-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagence-adeliom%2Feasy-editor-bundle/lists"}