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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package amber

Amber

Form, List and UI tools for Laravel and October CMS.

Amber 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.

This package (larajax/amber) is the Laravel implementation of Amber. It brings in october/rain and october/amber together so the widget engine is ready to consume in any Laravel application.

What is this?

Amber provides a reusable, YAML-driven widget system for building data-editing interfaces. It is not tied to a specific application shell. Use it to:

In 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.

Each widget implements the Larajax 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.

Requirements

Installing larajax/amber pulls all of these in for you.

Installation

The package registers an AmberServiceProvider automatically via Laravel's package discovery.

Publishing assets

Amber widgets ship a small CSS + JS bundle that the browser loads at runtime. Publish it once after installing (and again after upgrading):

Files are copied verbatim into public/vendor/amber/. There is no build step; the JS is plain ES modules and the CSS is plain CSS with @import.

Include them in your layout, after the larajax framework bundle:

Larajax exposes the window.jax API that Amber widgets register their controls against, so it must load first.

Usage

Build a widget inline in your controller action with Form::make(...), then pass it to the view:

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.

Render the widget in a Blade view:

Amber widgets are Larajax view 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()->ajax(), or how to use widgets outside a LarajaxController, see the Larajax docs.

Included Widgets


All versions of amber with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
larajax/larajax Version dev-develop as 2.3
october/rain Version dev-next as 4.4.0
october/amber Version dev-main
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package larajax/amber contains the following files

Loading the files please wait ...