{"id":51016389,"url":"https://github.com/octobercms/amber","last_synced_at":"2026-06-21T11:02:05.513Z","repository":{"id":360415682,"uuid":"1245406438","full_name":"octobercms/amber","owner":"octobercms","description":"Form, List and UI tools","archived":false,"fork":false,"pushed_at":"2026-05-26T09:04:46.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T11:08:53.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/octobercms.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T07:36:00.000Z","updated_at":"2026-05-26T09:04:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/octobercms/amber","commit_stats":null,"previous_names":["octobercms/amber"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/octobercms/amber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octobercms%2Famber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octobercms%2Famber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octobercms%2Famber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octobercms%2Famber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octobercms","download_url":"https://codeload.github.com/octobercms/amber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octobercms%2Famber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34607126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-21T11:02:04.737Z","updated_at":"2026-06-21T11:02:05.508Z","avatar_url":"https://github.com/octobercms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"October Amber\n=======\n\nForm, List and UI tools for Laravel and [October CMS](https://octobercms.com).\n\nAmber is the foundation layer for rendering forms, lists, filters and other backend widgets. It is the same widget engine that powers the October CMS admin panel, packaged as a standalone library so it can be used anywhere. This includes front-end pages, inside October CMS themes/components, or directly from a plain Laravel route/controller.\n\n## What is this?\n\nAmber provides a reusable, YAML-driven widget system for building data-editing interfaces. It is not tied to a specific application shell. Use it to:\n\n- Render forms and lists in a regular Laravel app, outside of any CMS.\n- Build the field-rendering pipeline inside October CMS itself.\n- Compose admin-style UIs from configuration rather than hand-written markup.\n\nIn short, Amber is the wider abstraction that sits below October's backend module; the part that knows how to turn a `fields.yaml` into a working form, or a set of `columns.yaml` into a sortable list.\n\nEach widget implements the [Larajax](https://larajax.org/guide/defining-components.html) `ViewComponentInterface`, so AJAX handlers (uploads, validation, partial updates, etc.) are wired in automatically the same way as any other Larajax view component. A widget rendered by Amber behaves like a first-class Larajax component on the page.\n\n## Requirements\n\n- PHP 8.2 or higher\n- Laravel 12\n- [october/rain](https://github.com/octobercms/library) (used for the underlying database, validation, and HTML helpers)\n- [larajax/larajax](https://larajax.org) (provides the View Component interface widgets implement)\n\n## Installation\n\n```bash\ncomposer require october/amber\n```\n\nThe package registers an `AmberServiceProvider` automatically via Laravel's package discovery.\n\n## Usage\n\nBuild a widget inline in your controller action with `Form::make(...)`, then pass it to the view:\n\n```php\nuse App\\Models\\User;\nuse October\\Amber\\Widgets\\Form;\n\npublic function edit($id)\n{\n    $user = User::findOrFail($id);\n\n    $form = Form::make([\n        'model' =\u003e $user,\n        'fields' =\u003e '~/resources/amber/user/fields.yaml',\n    ]);\n\n    return view('users.edit', ['form' =\u003e $form]);\n}\n```\n\n`Form::make([...])` constructs the widget, binds it to the current controller, and returns it. The widget is a regular PHP object after that - pass it to the view, store it in a variable, do whatever you would do with any other object. AJAX handlers defined on the widget (file uploads, inline validation, partial reloads, etc.) are wired up automatically.\n\nRender the widget in a Blade view:\n\n```blade\n{!! $form-\u003erender() !!}\n```\n\nAmber widgets are [Larajax view components](https://larajax.org/guide/defining-components), and `Form::make` is the standard inline registration pattern documented there. For details on how the action lifecycle handles AJAX requests, how to guard side effects with `request()-\u003eajax()`, or how to use widgets outside a `LarajaxController`, see the Larajax docs.\n\n## Included Widgets\n\n- **Form** - YAML or array-driven form builder with field widgets (text, dropdown, repeater, file upload, etc.)\n- **Lists** - sortable, paginated record lists with column types and row actions\n- **ListStructure** - tree and reorderable list variants\n- **Filter** - scope-based filtering for list views\n- **Toolbar** - action buttons and search bar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctobercms%2Famber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctobercms%2Famber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctobercms%2Famber/lists"}