Download the PHP package cocosmos/filament-sticky-save-bar without Composer

On this page you can find all versions of the php package cocosmos/filament-sticky-save-bar. 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 filament-sticky-save-bar

Filament Sticky Save Bar

Latest Version on Packagist Total Downloads

A Filament v5 plugin that displays a floating action bar at the bottom (or top) of the viewport when a form has unsaved changes — so users on long edit pages never have to scroll back up to save.


Features


Requirements


Installation

Install via Composer:

Register the plugin in your panel provider:


Basic Usage

Once registered, the bar appears automatically on any page that contains a wire:submit form with unsaved changes.


Configuration

All options are set fluently on the plugin instance.

Label

Override the default "Unsaved changes" label:

Position

Pin the bar to the top of the viewport instead of the bottom:

Value Description
Position::Bottom (default) Pinned to the bottom of the viewport
Position::Top Pinned to the top of the viewport

Show On

Control when the bar becomes visible:

Value Description
ShowOn::Dirty (default) Only when the form is dirty and the native Save button has scrolled out of view
ShowOn::DirtyAlways Whenever the form is dirty, regardless of whether the native Save button is in view
ShowOn::Always Whenever the native Save button is out of view, regardless of dirty state

Extra Buttons

Cancel

A Cancel button that navigates back. Enabled by default.

Save & Close

A Save & Close button that saves the form and then navigates back.

Discard

A Discard changes button that reloads the page, reverting all unsaved edits.

Enabled

Disable the plugin globally, or conditionally via a closure:


Per-Page Opt-Out

To disable the bar on a specific page, add the HasStickySaveBarDisabled trait to the page class:


Custom Components

The bar detects dirty state from native input/change events and from Filament toggles. Some custom components change their state through Livewire actions instead — e.g. a repeater-style list with "move up", "move down", or "disable" buttons — which don't emit a native event, so the bar can't see them automatically.

For those cases, dispatch one of these events from your component. Any bubbling CustomEvent works (Alpine $dispatch, Livewire $dispatch, or plain dispatchEvent):

Event Effect
sticky-save-bar:mark-dirty Force the bar to show
sticky-save-bar:check Recompute dirty by comparing the form's current values against the baseline
sticky-save-bar:reset Treat the current state as clean — re-baseline and hide the bar

Example — show the bar whenever your component's Alpine state changes:

After your own save (or when the user reverts), dispatch sticky-save-bar:reset to mark the state clean again.


Translations

The plugin ships with translations for 8 languages: ar, de, en, es, fr, id, it, pt.

To publish and customise them:

The published files will appear in lang/vendor/sticky-save-bar/{locale}/sticky-save-bar.php.

Translation keys

Key Default (en)
unsaved_changes Unsaved changes
save Save
cancel Cancel
save_and_close Save & Close
discard Discard changes

Changelog

See CHANGELOG.md.


License

MIT — see LICENSE.


All versions of filament-sticky-save-bar with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.0
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 cocosmos/filament-sticky-save-bar contains the following files

Loading the files please wait ...