{"id":36388237,"url":"https://github.com/customberg/customberg-php","last_synced_at":"2026-01-11T15:05:19.336Z","repository":{"id":65145643,"uuid":"397643324","full_name":"customberg/customberg-php","owner":"customberg","description":"A Gutenberg custom fields generator with a few predefined field types","archived":false,"fork":false,"pushed_at":"2025-05-28T17:33:03.000Z","size":50771,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T06:46:09.887Z","etag":null,"topics":["backpack-for-laravel","block-editor","gutenberg","laravel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/customberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-18T15:08:03.000Z","updated_at":"2025-05-28T17:26:43.000Z","dependencies_parsed_at":"2024-10-22T19:38:08.783Z","dependency_job_id":null,"html_url":"https://github.com/customberg/customberg-php","commit_stats":{"total_commits":42,"total_committers":1,"mean_commits":42.0,"dds":0.0,"last_synced_commit":"b0cde0f6bc5bc48088e363bb228adea504223233"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/customberg/customberg-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customberg%2Fcustomberg-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customberg%2Fcustomberg-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customberg%2Fcustomberg-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customberg%2Fcustomberg-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/customberg","download_url":"https://codeload.github.com/customberg/customberg-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customberg%2Fcustomberg-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28309752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backpack-for-laravel","block-editor","gutenberg","laravel"],"created_at":"2026-01-11T15:05:18.630Z","updated_at":"2026-01-11T15:05:19.327Z","avatar_url":"https://github.com/customberg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Demo GIF\n\n\u003cimg src=\"customberg-demo.gif?raw=true\"\u003e\n\n# Instalation\n\n```bash\ncomposer require customberg/customberg-php\n```\n\nAdd vendor files to your project (CSS, JS, Config, Views):\n\n```bash\nphp artisan vendor:publish --provider=\"VanOns\\Laraberg\\LarabergServiceProvider\"\nphp artisan vendor:publish --provider=\"Customberg\\PHP\\CustombergServiceProvider\"\n```\n\n# Model Setup\n\nThe model that you want to use this block editor should have:\n\n```php\nuse VanOns\\Laraberg\\Traits\\RendersContent;\n\nclass Page extends Model\n{\n    use RendersContent;\n}\n```\n\nIn the backpack crud controller you must create the crud field like this:\n\n```php\nCRUD::field('content')\n    -\u003elabel('Page content')\n    -\u003etype('customberg')\n    -\u003eview_namespace('customberg::');\n```\n\n# Usage\n\nCreate a new block with the `make:block` command:\n\n```bash\nphp artisan make:block AwesomeBlock\n```\n\nThen edit the block field definition in `app/Blocks/AwesomeBlock.php` file, and the block view in `resources/views/blocks/cb-awesome-block.blade.php`.\n\nCheckout [/example/app/Blocks/EverySingleField.php](https://github.com/customberg/customberg-php/blob/main/example/app/Blocks/EverySingleField.php) for a full example with every field type.\n\n# Update\n\nAfter an update, get the latest assets using:\n\n```bash\n# update source\ncomposer require customberg/customberg-php\n# update public assets\nphp artisan vendor:publish --tag=\"customberg-assets\" --force\nphp artisan vendor:publish --provider=\"VanOns\\Laraberg\\LarabergServiceProvider\" --tag=\"public\" --force\n```\n\n# Example project\n\n```bash\ngit clone https://github.com/customberg/customberg-php\ncd customberg-php/example\ndocker compose up -d\ndocker compose exec php su app -c 'cd example; composer install'\ndocker compose exec php su app -c 'cd example; cp .env.example .env; php artisan key:generate'\ndocker compose exec nginx su app -c 'cd /app/example/public/; ln -s ../storage/app/public storage'\n```\n\nNavigate to http://localhost:8084 and press login.\n\nEnjoy !\n\n# Roadmap:\n\n|          |                   |\n| -------- | ----------------- |\n| ✅       | A checkbox field  |\n| ✅       | A custom js field  |\n| \u0026#x2610; | Switch field      |\n| \u0026#x2610; | Radio field       |\n| \u0026#x2610; | Slider field      |\n| \u0026#x2610; | Google Maps field |\n| \u0026#x2610; | Documentation !   |\n| \u0026#x2610; | Icon picker field |\n\n# Changelog:\n\n### v0.17 - 2024-10-15\n\n-   Replace str_replace_limit implementation because there is a character limit error\n\n### v0.16 - 2024-10-14\n\n-   New field type: `custom` for custom js field with React.createElement\n-   Checkout [/example/app/Blocks/CustomField.php](https://github.com/customberg/customberg-php/blob/main/example/app/Blocks/CustomField.php) for an example with summernote for Backpack V5 (TODO: update to V6)\n\n### v0.15 - 2024-09-26\n\n-   New field types: `checkbox`, `textarea`, `number`, `email`, `url`\n-   New property `placeholder` for text fields\n-   New property `hint` and `hint_html` for all fields that show a small helper text\n-   Checkout [/example/app/Blocks/EverySingleField.php](https://github.com/customberg/customberg-php/blob/main/example/app/Blocks/EverySingleField.php) for a full example\n\n### v0.14 - 2024-08-07\n\n-   Bugfix: Preview API while rendering a block with multilanguage, when i'm selecting the new language that does not have translation saved.\n\n### v0.13 - 2024-07-08\n\n-   Allow laravel 11 installation\n\n### v0.12 - 2023-11-09\n\n-   Bugfix error cannot redeclare str_replace_limit\n\n### v0.11 - 2023-11-08\n\n-   Update requirements to laravel 10\n\n### v0.10 - 2023-04-02\n\n-   Added file extension validation to `upload_image`.\n    \u003cbr /\u003eUse `'allowed_types' =\u003e ['png', 'jpg', 'webp', 'svg'],`\n-   Added `upload_file` for files without preview.\n    \u003cbr /\u003eUse `'multiple' =\u003e true,` if you want multiple files in the same field.\n\n### v0.9 - 2023-01-01\n\n-   Multilanguage fine tuning, made configurable language list and bugfixing\n-   Multilanguage only supports fields `text` and `rich_text`, and works inside repeatable field.\n\n### v0.8 - 2022-12-31\n\n-   Fine tuning for repeatable field frontend\n-   Added buttons to move and duplicate a item inside repeatable\n-   Added example block for repeatable\n\n### v0.7 - 2022-12-30\n\n-   First version published to packagist.org ! 🎉🥳\n-   Only available fields are: `text, rich_text, color, upload_image`\n-   Repeatable is present but untested. Multilanguage present but untested and hardcoded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomberg%2Fcustomberg-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomberg%2Fcustomberg-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomberg%2Fcustomberg-php/lists"}