Download the PHP package invaders-xx/filament-kanban-board without Composer

On this page you can find all versions of the php package invaders-xx/filament-kanban-board. 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-kanban-board

Add a Kanban page to filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Define a Kanban page within your Filament's application. It can be a page or a resource's page.

image

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the views using

You can also specify your own view for record content to change the behaviour:

in your class to add more content to your kanban's boxes.

You can define your own styles for each element of the Kanban:

Usage

In order to use this component, you must create a new Filament Page that extends from FilamentKanbanBoard

For each status we define, we must return an array with at least 2 keys: id and title.

Now, for records() we may define a list of Sales Orders that come from an Eloquent model in your project.

As you might see in the above snippet, we must return a collection of array items where each item must have at least 3 keys: id, title and status. The last one is of most importance since it is going to be used to match to which status the record belongs to. For this matter, the component matches status and records with the following comparison.

if you need to use this page within a Filament's resource, add the route function definition to the class:

Sorting and Dragging

By default, sorting and dragging between statuses is disabled. To enable it, set in your class:

Behavior and Interactions

When sorting and dragging is enabled, your component can be notified when any of these events occur. The callbacks triggered by these two events are onStatusSorted and onStatusChanged

On onStatusSorted you are notified about which record has changed position within it's status. You are also given a $orderedIds array which holds the ids of the records after being sorted. You must override the following method to get notified on this change.

On onStatusChanged gets triggered when a record is moved to another status. In this scenario, you get notified about the record that was changed, the new status, the ordered ids from the previous status and the ordered ids of the new status the record in entering. To be notified about this event, you must override the following method:

onStatusSorted and onStatusChanged are never triggered simultaneously. You'll get notified of one or the other when an interaction occurs.

You can also get notified when a record in the status board is clicked via the onRecordClick event

To enable onRecordClick set it in the class:

Editing records in Modal window

You can enable Modal window to edit records:

Make sure to have $recordClickEnabled set to true and $modalRecordClickEnabled set to true:

You can set modal title, width, save / cancel button labels:

You can set Form components by overriding function getEditModalRecordSchema():

To call Modal with Form override onRecordClick() function and add the following:

To manipulate with data from the Modal Form override editRecord() function:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-kanban-board with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
filament/filament Version ^3.0-stable
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^8.74|^9.0|^10.0|^11.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 invaders-xx/filament-kanban-board contains the following files

Loading the files please wait ....