Download the PHP package larajax/amber without Composer
On this page you can find all versions of the php package larajax/amber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larajax/amber
More information about larajax/amber
Files in larajax/amber
Informations about the package amber
Amber
A sample Laravel application demonstrating larajax/ui,
the Form, List and UI widget engine (the same one behind the October CMS admin panel),
packaged for any Laravel app. No CMS dependency, no JavaScript framework, no build step.
The app is a small user directory: it manages Users and User Groups using stock Illuminate Eloquent models, driving every screen from YAML configuration.
What it demonstrates
| Screen | URL | Widgets |
|---|---|---|
| Users list | /users |
Toolbar (declarative buttons + search), Filter (checkbox, dropdown and popover scopes), List (sortable, paginated) |
| Users reorder | /users/structure |
ListStructure (drag-to-reorder, persisted via SortableInterface) |
| Create / edit user | /users/create, /users/{id}/edit |
Form (tabs, contexts, relation fields, repeater, validation, AJAX save/delete) |
| Groups list | /user-groups |
Toolbar, List |
| Create / edit group | /user-groups/create, /user-groups/{id}/edit |
Form |
The widget definitions live in resources/ui and the controllers that
build them in app/Controllers.
Requirements
- PHP 8.3+
- Composer
- SQLite (default), or any database Laravel supports
Getting started
Then open http://localhost:8000. The seeder creates five user groups and fifty users
(each wired to a primary and secondary groups) plus a stable [email protected] account.
The default password for every seeded user is
password.
Manual setup
If you prefer to run the steps yourself:
How it fits together
A controller extends App\Classes\ControllerBase (itself a Larajax\LarajaxController),
builds one or more widgets from YAML, and passes them to a Blade view that echoes them;
widgets render as safe HTML, so {{ $widget }} works directly. Because the widgets are
Larajax view components, their AJAX handlers (onStore, onUpdate, onDestroy, sorting,
pagination, filtering) route automatically back to the controller that created them.
For the full documentation see the docs/ directory (a VitePress site) or the
larajax/ui package.
License
MIT
All versions of amber with dependencies
larajax/larajax Version dev-develop as 2.3
october/rain Version dev-next as 4.4.0
october/amber Version dev-main