Download the PHP package asignua/filament-kanban without Composer

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

Filament Kanban

Stand With Ukraine

Filament Kanban

Tests

A drag-and-drop Kanban board for Filament 5. Columns come from an enum or from database rows, cards are any Eloquent model (int, UUID or ULID keys), and the order is saved the way a real team board needs it: cards hidden by a search or a filter keep their places. Moving a card can ask a question first (a lost reason, a comment), is authorized through your policy, and can be refused by your own rule. It is the successor of mokhosh/filament-kanban, which stopped at Filament 3, with the same class names and hooks so a board moves over by swapping a namespace.

No JavaScript to build, no Tailwind safelist: drag and drop uses the SortableJS Filament already ships, the stylesheet is namespaced (.fi-kanban*) and uses Filament's own colour variables, so it follows your panel colours and dark mode.

Free or Pro?

Kanban (free, MIT) Kanban Pro (€69 / €169)
Board from an enum or from database rows, any Eloquent model (int / UUID / ULID) ✓ ✓
Drag and drop that keeps the places of cards hidden by search or filters ✓ ✓
Ask before a move (modal fields), policy and canMove() authorization ✓ ✓
Lazy columns: load more cards per column (opt-in) ✓ ✓
Search box, foldable columns, edit modal, events, mokhosh-compatible API ✓ ✓
Live updates over websockets: moves, reorders and edits of colleagues appear without a reload (opt-in) ✓ ✓
Workflow designer: steps, transitions and automations edited in the panel, journal, webhooks ✓
Transition rules: allow-list per step, required fields on entering a column ✓
WIP limits, soft or hard ✓
Column totals per currency, stale and overdue badges ✓
Several boards as tabs, each with its own scope and limits; Mine / All toggles ✓
Swimlanes (by owner, priority, any attribute) ✓
Any Filament table filter on the board ✓

Kanban Pro is an add-on: it requires the free package and builds on its documented extension points, so a board upgrades without rewriting.

Screenshots

A board with enum columns, a search box, a locked card with its badge and a folded "Done" column:

A Kanban board with three columns, a locked card and a collapsed Done column

Moving a card can ask a question first (a lost reason, a comment) before it is saved:

The transition modal asking for a reason when a card moves to Done

Dark mode follows the panel:

The same board in dark mode

Requirements

Installation

php artisan filament-kanban:install does the second step too. The plugin class is optional - boards are ordinary pages:

Usage

1. An enum-driven board

HasLabel, HasColor and HasIcon are optional; without them the column title is the case value. Override kanbanCases() to keep some cases off the board, getTitle() to change a title.

Cast the status column to the enum on the model ('status' => TaskStatus::class); a plain string column works too.

2. Columns from the database

Override statuses() and return arrays. id is the column id (what the browser sends), value is what is written to the status attribute (defaults to id):

3. On a resource

The model and the base query (tenancy, soft-delete scopes) come from the resource. Any other page class can use the trait Asignua\FilamentKanban\Concerns\InteractsWithKanban instead.

Order of cards

With $recordSortAttribute set, the board sorts by that column and saves the order after every drop. Only the visible cards change places. Search "invoice", drag one match above another: the matches swap slots, the hidden cards keep the slots they had. Writes use the query builder, so there are no model events and updated_at is not touched (a touch would make every renumbered card flash).

Without it nothing is persisted (cards are shown by key). If the model uses spatie/eloquent-sortable, its ordered() scope and setNewOrder() are used, like in mokhosh/filament-kanban.

Search and filters

A debounced search box filters the cards by $recordTitleAttribute; set protected array $searchableAttributes = ['title', 'client.name'] (dotted = through a relation) or protected bool $searchable = false. The term is also in the URL (?search=).

For your own filters override modifyRecordsQuery(Builder $query): Builder. Do not put filters in getEloquentQuery(): that query also finds the whole column when positions are saved.

Asking before a move

When the schema is not empty, dropping a card into that column opens a Filament modal instead of moving it. Confirm moves the card and fills the form data onto the record (onTransitionConfirmed(), override it when the fields are not columns). Need the answers in the same call that writes the move (e.g. one service method taking stage + lost reason)? Override onRecordTransitioned($recordId, $from, $to, $fromIds, $toIds, array $data) - it runs in the move's transaction, its default calls onStatusChanged() then onTransitionConfirmed(); or read currentTransitionData() inside onStatusChanged(). The card is not moved until you confirm: while the modal is open the board re-renders and shows the card in its original column, and Confirm moves it. Cancel just closes the modal; nothing changed. Need the record in the form? Override transitionSchemaFor(Model $record, string $from, string $to) and transitionFormDefaults(...).

Who may move what

Columns

All columns can be folded with the button in the header; a folded column is a narrow strip that still accepts drops. Fold some at start with protected array $collapsedStatuses = ['done'] (or 'collapsed' => true in a status array). The choice is remembered per browser. Turn the button off with protected bool $collapsibleColumns = false. An empty column shows a drop hint. On a phone the columns scroll horizontally and snap.

Lazy columns

A column with hundreds of cards (a CRM's "Won" and "Lost") does not have to load them all. Opt in with a page size:

Each column then loads its first 25 cards and ends with a Show 25 more button. The header badge keeps showing the column's total (with the search applied), not the number on screen. To page only some columns, override the method (null = that column loads everything):

Good to know:

Cards

By default a card shows the title; clicking it opens the edit modal. Override:

A card that was updated in the last $flashSeconds (default 3) pulses once.

Edit modal

Views

Publish with php artisan vendor:publish --tag=filament-kanban-views, or point one board at its own view:

The column view receives $column (a read-only KanbanColumn: id, title, value, color, icon, records, meta; also readable as $column['title']), the card view $record and $column.

Events

Asignua\FilamentKanban\Events\KanbanRecordMoved (record, from, to, board, data) is dispatched after a card changed column, and onRecordMoved() is called on the board. Reorders inside a column do not fire it. KanbanBoardChanged is the separate real-time broadcast signal.

Real-time

Off by default: today a card moved by a colleague shows up after a reload. Turn real-time on and every open copy of the board updates itself over a websocket (Laravel Reverb or any Pusher-compatible server).

FILAMENT_KANBAN_REALTIME Behaviour
unset (null) on when the default broadcaster is reverb, pusher or ably
true on
false nothing is broadcast, nothing is listened to, no polling: the board is exactly what it was without this feature

What is sent is a signal, not data: Events\KanbanBoardChanged carries the board class, the card key, the kind of change (moved, sorted, updated; created / deleted for your own code) and the id of the copy that caused it. Every other copy re-reads the cards itself, so policies, scopes and filters stay on the server. The event is broadcast right away (ShouldBroadcastNow, no queue worker needed) and only after the surrounding transaction committed.

Each board has a private channel filament-kanban.board.{Board-Class}. Listening is authorised by the same rule that lets a user open the board (canAccess(): the model's viewAny policy by default). To narrow it further (say, a board per project):

What the user sees. A burst of changes is collected for 500 ms (realtime.debounce) into one refresh. Your own move does not echo back. While a card is being dragged or a modal (edit, transition) is open the board is never re-rendered under the user's hands: a small "Board changed. Refresh to see the latest cards." notice with a Refresh button appears instead (translatable, board_changed / board_refresh).

Setup is the same as for the other asign plugins:

By default (realtime.echo = 'plugin') the plugin brings Laravel Echo itself by reusing the one Filament already ships, configured from the broadcasting connection, and registers /broadcasting/auth if your app has not. Use FILAMENT_KANBAN_ECHO=filament (Filament's own filament.broadcasting.echo) or host (your bundle already loads window.Echo) to opt out. Behind nginx proxy /app/ to Reverb and leave the address empty. FILAMENT_KANBAN_BROADCAST_CONNECTION publishes on a connection other than the default.

Where the browser connects (shared by all asign plugins). Each field (host, port, scheme) is resolved on its own, first set value wins:

  1. FILAMENT_KANBAN_WS_HOST / _PORT / _SCHEME (this plugin only);
  2. Laravel's browser-side variables VITE_REVERB_HOST / VITE_REVERB_PORT / VITE_REVERB_SCHEME (written by php artisan install:broadcasting --reverb);
  3. Filament's own Echo config, filament.broadcasting.echo (wsHost, wsPort / wssPort, forceTLS);
  4. the page's own host, protocol and default port.

Whichever plugin renders its hook first creates window.Echo for the whole page, so a plugin without its own address must not fall back to localhost: set VITE_REVERB_* once and every asign plugin on the site (chat, kanban, record lock) connects to the same place.

If the socket dies for good (pusher-js gives up after a couple of abrupt drops, e.g. a Reverb restart on deploy) the board falls back to a refresh every FILAMENT_KANBAN_FALLBACK_POLL seconds (default 60, 0 = off), skipping hidden tabs, and catches up once when the connection returns.

Changes your own code makes (a create or delete action on your board, a custom write hook) call $this->broadcastKanbanChange($record->getKey(), KanbanBoardChanged::CREATED); from outside a board use Realtime::changed(Board::class, $key, 'deleted'). A board that defines its own getListeners() must merge $this->kanbanRealtimeListeners() into it.

Configuration

Behaviour is a property or an overridable method on the board (see above and docs/SPEC.md). The only config file, config/filament-kanban.php (--tag=filament-kanban-config), holds the real-time settings. The translations are published with --tag=filament-kanban-translations.

Migrating from mokhosh/filament-kanban

mokhosh/filament-kanban stops at Filament 3 (its issue "Support filament v4" is still open). This package keeps its class names, properties and hook signatures on purpose, so a board moves over by changing a namespace and fixing what Filament 4/5 itself changed. A test (MokhoshMigrationTest) runs a board written exactly as their README shows it - public hooks, a hand-built records() and statuses() - against this package.

  1. composer remove mokhosh/filament-kanban && composer require asignua/filament-kanban.
  2. Swap the namespaces: Mokhosh\FilamentKanban\Pages\KanbanBoard -> Asignua\FilamentKanban\Pages\KanbanBoard, Mokhosh\FilamentKanban\Concerns\IsKanbanStatus -> Asignua\FilamentKanban\Concerns\IsKanbanStatus.
  3. Fix the Filament 4/5 differences in your board class (these are Filament's, not ours): protected static string|BackedEnum|null $navigationIcon, protected string $view is no longer static, form components come from Filament\Forms\Components, layout from Filament\Schemas\Components.
  4. Run php artisan filament:assets (or filament-kanban:install, the same command name) and delete the old published assets.
  5. Delete a published kanban-* view unless you changed it on purpose; the old markup uses Tailwind classes your panel theme does not compile.

API mapping

mokhosh/filament-kanban filament-kanban Notes
Mokhosh\FilamentKanban\Pages\KanbanBoard Asignua\FilamentKanban\Pages\KanbanBoard Also Pages\KanbanResourcePage for a page on a resource, or the trait Concerns\InteractsWithKanban on any page.
protected static string $model same
protected static string $statusEnum + IsKanbanStatus on the enum same kanbanCases() and getTitle() work as before; HasLabel / HasColor / HasIcon are honoured too. An enum's own static statuses() is still read.
protected static string $recordTitleAttribute / $recordStatusAttribute same
statuses(): Collection of ['id' => ..., 'title' => ...] same Extra keys: value, color, icon, collapsed, meta. id is always a string.
records(): Collection same, but prefer modifyRecordsQuery(Builder) Overriding records() replaces search, ordering and lazy columns.
getEloquentQuery() same Keep UI filters out of it (they belong in modifyRecordsQuery()): it also finds the whole column when positions are saved.
onStatusChanged($recordId, $status, $fromOrderedIds, $toOrderedIds) same signature, protected Browser entry point is statusChanged(), which authorizes first. A public override still works but is callable from the browser.
onSortChanged($recordId, $status, $orderedIds) same signature, protected Entry point sortChanged().
Livewire events status-changed / sort-changed same
Spatie eloquent-sortable (ordered(), setNewOrder()) still works when no $recordSortAttribute is set Or name a column: $recordSortAttribute = 'position'; only the visible cards change places.
$disableEditModal same A card with recordUrl() links instead of opening the modal.
getEditModalFormSchema($recordId) same Now feeds a Filament action modal (kanbanEdit), so the schema is an ordinary action schema.
editRecord($recordId, $data, $state) same
$editModalTitle, $editModalWidth, $editModalSlideOver, $editModalSaveButtonLabel, $editModalCancelButtonLabel same
$headerView, $recordView, $statusView, $scriptsView, $view same New: $toolbarView. Views still read $statuses / $status['records'] and $record as a Model.
make:kanban, filament-kanban:install, tag filament-kanban-views same
HasRecentUpdateIndication (deprecated) built in The flash is automatic ($flashSeconds).
TestsFilamentKanban testing macros not ported Test with Livewire::test(Board::class)->call('statusChanged', ...).
- canMove(), validateMove(), isRecordDraggable(), canEditRecord() New: authorization through the model policy and your own rules.
- columnTransitionSchema() / onRecordTransitioned() New: ask a question (lost reason) before a move.
- $recordsPerColumn New: lazy columns with "Show more" for columns with hundreds of cards.
- recordBadges(), recordExtras(), recordDescription(), recordUrl(), recordRelations(), search, folding New.

There is no compatibility trait: the names are already the same, so a shim would only add a second way to write the same board.

What differs, in short:

Gotchas

Extending

Slots for toolbar, column headers, card badges and footers, column meta, query modification and before-move validation are documented in docs/EXTENDING.md. The paid add-on asignua/filament-kanban-pro (workflow designer, transition rules, WIP limits, column totals, swimlanes, stale badges, boards as tabs, table-filter integration) is built only on these.

Translations

The interface ships in English, Ukrainian, German, Spanish, French, Italian, Dutch, Polish, Brazilian Portuguese and Turkish under the filament-kanban::filament-kanban namespace. A test keeps every language in step with the English keys. Override a string by publishing the translations (--tag=filament-kanban-translations) and editing the copy in lang/vendor/filament-kanban.

AI agents

The package ships Laravel Boost guidelines (resources/boost/guidelines/core.blade.php) so a coding agent wires it up correctly.

Testing

Try the demo boards by hand: vendor/bin/testbench workbench:build, then vendor/bin/testbench serve --host=0.0.0.0, log in at /admin as [email protected] / password.

Changelog

See CHANGELOG.md.

More plugins by asign

All plugins: https://filamentphp.com/plugins?q=asign

License

The MIT License (MIT). See LICENSE.md.


All versions of filament-kanban with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.11.2
illuminate/contracts Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 asignua/filament-kanban contains the following files

Loading the files please wait ...