{"id":15164521,"url":"https://github.com/mosweed/dropblockeditor","last_synced_at":"2026-01-19T11:32:32.082Z","repository":{"id":232156256,"uuid":"783613471","full_name":"Mosweed/dropblockeditor","owner":"Mosweed","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-20T23:20:32.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T20:45:19.403Z","etag":null,"topics":["drop","dropblock","laravel","livewire","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mosweed.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-04-08T08:31:05.000Z","updated_at":"2024-06-20T23:19:53.000Z","dependencies_parsed_at":"2024-06-21T00:31:18.904Z","dependency_job_id":"4068eabe-eb13-40db-8306-b0616b4536f3","html_url":"https://github.com/Mosweed/dropblockeditor","commit_stats":null,"previous_names":["ps200735/dropblockeditor","mosweed/dropblockeditor"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosweed%2Fdropblockeditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosweed%2Fdropblockeditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosweed%2Fdropblockeditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mosweed%2Fdropblockeditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mosweed","download_url":"https://codeload.github.com/Mosweed/dropblockeditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399826,"owners_count":20932875,"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":["drop","dropblock","laravel","livewire","php"],"created_at":"2024-09-27T03:24:58.156Z","updated_at":"2026-01-11T13:56:36.795Z","avatar_url":"https://github.com/Mosweed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\u003cimg src=\"./logos/logo1.svg\" alt=\"Logo DropBlockEditor\"\u003e\u003c/p\u003e\n\n\n# Introduction\n\nThe DropBlockEditor package provides you with a cool drag and drop editor. It allows you to easily create your own custom blocks and make them editable through Livewire components.\n\n- \u003e Note: This package is in the pre-release stage. Code is subject to change and should not considered stable at this time.\n\n# Requirements\n\nTo use this package, you'll need:\n\n- \u003e To use with Livewire v3.\n- \u003e PHP 8.1 or higher\n\n# Installation\n\nYou can install the package via composer:\n\n```shell script\ncomposer require mo_sweed/dropblockeditor\n```\n\nYou can publish all files with:\n\n```shell script\nphp artisan vendor:publish --provider=\"Mo_sweed\\DropBlockEditor\\DropBlockEditorServiceProvider\" –-force\n```\n\nOnce all files are published, open `routes/web.php`, and add this code at the end of the page:\n\n```php\nrequire __DIR__.'/dropblockeditor.php';\n```\n\nAfter that, run this command:\n\n```shell script\nphp artisan migrate\n```\n\n## Run the following artisan command to create a new Block with an edit component\n\n```shell script\nphp artisan dropblockeditor:make Text\n```\n\n# Migrations\n\n- \u003e **Name:** pages\n\n# Model\n\n- \u003e **Name:** pages\n- \u003e **Data:** [title, slug, status, content]\n- \u003e The Route key is a slug\n\n# Route\n\n- \u003e `update_page/{page:slug}`: if you have a page\n- \u003e `create_page`: to make a page\n- \u003e Both routes using the same page: PageEiditor\n\n# PageEiditor\n\n- \u003e **Location:** App\\Livewire\\DropBlockEditor\n- \u003e **Function:** Check if the URL has `(page:slug)`. If a page exists with `(page:slug)`, then send all info page to DropBlockEditor. Else return 404. If the URL doesn't have `(page:slug)`, then call DropBlockEditor.\n\n# DropBlockEditor\n\n- \u003e **Location:** App\\Livewire\\DropBlockEditor\n- \u003e **Function:** Get all existing blocks, page settings, and change Blocks location.\n\n# Blocks\n\n## A block has a visual side which is the `Block` class and an optional modified Livewire component (`BlockEditComponent`) to make it editable.\n\n- \u003e **Block location:** App\\Classes\\Blocks\n- \u003e **BlockEditComponent:** App\\Livewire\\DropBlockEditor\\Components\n\n## Credits\n\n- [Mohmad Yazan Sweed](https://github.com/Mosweed)\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%2Fmosweed%2Fdropblockeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosweed%2Fdropblockeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosweed%2Fdropblockeditor/lists"}