Download the PHP package gerenuk/filament-banhammer without Composer

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

Project banner

Filament Banhammer

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

This package uses mchev/banhammer to add model banning functionality to filament.

Table of Contents

  1. Introduction
  2. Version Compatibility
  3. Installation
  4. Usage
    • Registering the Plugin
    • Ban
    • Unban
    • Ban Bulk
    • Unban Bulk
  5. Testing
  6. Screenshots
    • Resource
    • Ban Action
    • Ban Bulk Action
    • Ban Modal
    • Unban Action
    • Unban Bulk Action
    • Unban Modal
  7. Changelog
  8. Contributing
  9. Security Vulnerabilities
  10. Credits
  11. License

Version Compatibility

Plugin Filament Laravel PHP
1.x 3.x 10.x 8.x
1.x 3.x 11.x 8.2|8.3

Installation

This package depends on mchev/banhammer please follow the install guide there first.

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Click to expand! return [ /* * The name of the resource which the plugin should use. */ 'resource' => \Gerenuk\FilamentBanhammer\Resources\BanhammerResource::class, /* * Whether an export action should be included on the resource. */ 'show_export' => true, /* * Options for the actions. */ 'actions' => [ /* * Options for the ban action. */ 'ban' => [ /* * The title of the ban action. */ 'label' => 'ban', /* * The colour of the ban action. */ 'colour' => 'warning', /* * The symbol of the ban action. */ 'icon' => 'heroicon-o-no-symbol', /* * Whether confirming is required when using the ban action. */ 'require_confirmation' => true, /* * Notification options for the ban action. */ 'notifications' => [ /* * Whether a notification should be shown for the ban action. */ 'show' => true, /* * Success options for the ban action notifications. */ 'success' => [ /* * The title of the success notification for the ban action. */ 'title' => 'Banned', ], /* * Error options for the ban action notifications. */ 'error' => [ /* * The title of the error notification for the ban action. */ 'title' => 'Failed', ], ], ], /* * Options for the edit ban action. */ 'edit_ban' => [ /* * The title of the edit ban action. */ 'label' => 'edit ban', /* * The colour of the edit ban action. */ 'colour' => 'warning', /* * The symbol of the edit ban action. */ 'icon' => 'heroicon-o-pencil-square', /* * Whether confirming is required when using the edit ban action. */ 'require_confirmation' => true, /* * Notification options for the edit ban action. */ 'notifications' => [ /* * Whether a notification should be shown for the edit ban action. */ 'show' => true, /* * Success options for the edit ban action notifications. */ 'success' => [ /* * The title of the success notification for the edit ban action. */ 'title' => 'Saved', ], /* * Error options for the edit ban action notifications. */ 'error' => [ /* * The title of the error notification for the edit ban action. */ 'title' => 'Failed', ], ], ], /* * Options for the unban action. */ 'unban' => [ /* * The title of the unban action. */ 'label' => 'unban', /* * The colour of the unban action. */ 'colour' => 'warning', /* * The symbol of the unban action. */ 'icon' => 'heroicon-o-no-symbol', /* * Whether confirming is required when using the unban action. */ 'require_confirmation' => true, /* * Notification options for the unban action. */ 'notifications' => [ /* * Whether a notification should be shown for the unban action. */ 'show' => true, /* * Success options for the unban action notifications. */ 'success' => [ /* * The title of the success notification for the unban action. */ 'title' => 'Unbanned', ], /* * Error options for the unban action notifications. */ 'error' => [ /* * The title of the error notification for the unban action. */ 'title' => 'Failed', ], ], ], /* * Options for the ban bulk action. */ 'ban_bulk' => [ /* * The title of the ban bulk action. */ 'label' => 'ban', /* * The colour of the ban bulk action. */ 'colour' => 'warning', /* * The symbol of the ban bulk action. */ 'icon' => 'heroicon-o-no-symbol', /* * Whether confirming is required when using the ban bulk action. */ 'require_confirmation' => true, /* * Notification options for the ban bulk action. */ 'notifications' => [ /* * Whether a notification should be shown for the ban bulk action. */ 'show' => true, /* * Success options for the ban bulk action notifications. */ 'success' => [ /* * The title of the success notification for the ban bulk action. */ 'title' => 'Banned', ], /* * Error options for the ban bulk action notifications. */ 'error' => [ /* * The title of the error notification for the ban bulk action. */ 'title' => 'Failures', ], ], ], /* * Options for the edit ban bulk action. */ 'edit_ban_bulk' => [ /* * The title of the edit ban bulk action. */ 'label' => 'edit ban', /* * The colour of the edit ban bulk action. */ 'colour' => 'warning', /* * The symbol of the edit ban bulk action. */ 'icon' => 'heroicon-o-pencil-square', /* * Whether confirming is required when using the edit ban bulk action. */ 'require_confirmation' => true, /* * Notification options for the edit ban bulk action. */ 'notifications' => [ /* * Whether a notification should be shown for the edit ban bulk action. */ 'show' => true, /* * Success options for the edit ban bulk action notifications. */ 'success' => [ /* * The title of the success notification for the edit ban bulk action. */ 'title' => 'Saved', ], /* * Error options for the edit ban bulk action notifications. */ 'error' => [ /* * The title of the error notification for the edit ban bulk action. */ 'title' => 'Failures', ], ], ], /* * Options for the unban bulk action. */ 'unban_bulk' => [ /* * The title of the unban bulk action. */ 'label' => 'unban', /* * The colour of the unban bulk action. */ 'colour' => 'warning', /* * The symbol of the unban bulk action. */ 'icon' => 'heroicon-o-no-symbol', /* * Whether confirming is required when using the unban bulk action. */ 'require_confirmation' => true, /* * Notification options for the unban bulk action. */ 'notifications' => [ /* * Whether a notification should be shown for the unban bulk action. */ 'show' => true, /* * Success options for the unban bulk action notifications. */ 'success' => [ /* * The title of the success notification for the unban bulk action. */ 'title' => 'Unbanned', ], /* * Error options for the unban bulk action notifications. */ 'error' => [ /* * The title of the error notification for the unban bulk action. */ 'title' => 'Failures', ], ], ], ], ];

Usage

You first need to register the plugin with Filament. This can be done inside of your PanelProvider, e.g. AdminPanelProvider.

For each model you have added the use Banhammer trait to, you will also need to add the following method:

[!IMPORTANT] This specifies which property to be displayed in the bans resource.

Ban

To be able to ban a resource simply add the Ban action:

Unban

To be able to unban a resource simply add the Unban action:

A ban resource is included by default if you would prefer to use that instead.

Ban Bulk

To be able to bulk ban a resource simply add the BanBulk action:

Unban Bulk

To be able to bulk unban a resource simply add the UnbanBulk action:

A ban resource is included by default if you would prefer to use that instead.

Testing

Screenshots

Resource

Ban Resource

Ban Action

Ban Action

Ban Bulk Action

Ban Bulk Action

Ban Modal

Ban Modal

Unban Action

Unban Action

Unban Bulk Action

Unban Bulk Action

Unban Modal

Unban Modal

Changelog

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

Contributing

Please see CONTRIBUTING for details.

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-banhammer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^3.2
mchev/banhammer Version ^2.3
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 gerenuk/filament-banhammer contains the following files

Loading the files please wait ....