Download the PHP package bostos/reorderable-columns without Composer

On this page you can find all versions of the php package bostos/reorderable-columns. 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 reorderable-columns

Reorderable Columns

Latest Version on Packagist Total Downloads

Reorderable Columns is a plugin for Filament that allows users to reorder table columns via drag-and-drop. The new column order can be saved either in the session or persisted in the database (per user).

Reorderable Columns Demo


Features


📦 Installation

Install the package via Composer:

Then, publish and run the migrations to create the reorderable_columns_orders table:

Optionally, publish the configuration file:


⚙️ Usage

Step 1: Register the Plugin in Your Panel Provider

In your AdminPanelProvider.php (or another panel provider), register the plugin inside the panel() method. You can choose the persistence strategy:


Step 2: Use the Trait in Your ListRecords Page

In your ListRecords page class (e.g. app/Filament/Resources/UserResource/Pages/ListUsers.php), use the HasReorderableColumns trait and override the $view property.

💡 Don't forget to create the custom view in Step 4.


Step 3: Enable Reordering on Your Table

In your resource file (e.g. UserResource.php), chain the ->reorderableColumns() method to your table definition. Provide a unique key (usually table or model name).


Step 4: Create a Custom Blade View

Since Filament’s table component doesn’t allow custom HTML attributes on the outer wrapper, you’ll need to override the view and wrap the table manually.

1. Create a custom view file

At the path defined in Step 2, create:

2. Copy the original view content

Copy the content from:

Paste it into your custom Blade file.

3. Wrap the table

Locate the line:

Wrap it in a div with a data-reorderable-columns attribute:

Make sure the value (users) matches the key passed in ->reorderableColumns().


📝 Changelog

Please refer to the CHANGELOG for details on recent changes.


🤝 Contributing

Contributions are welcome! Please see the CONTRIBUTING guide for details.


🔐 Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.


🧠 Credits


⚖️ License

The MIT License (MIT). See the LICENSE file for more details.


All versions of reorderable-columns with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/tables Version ^3.0
spatie/laravel-package-tools Version ^1.15.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 bostos/reorderable-columns contains the following files

Loading the files please wait ....