Download the PHP package degecko/nova-filters-summary without Composer

On this page you can find all versions of the php package degecko/nova-filters-summary. 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 nova-filters-summary

Laravel Nova Filters Summary

A custom Card component for Laravel Nova which displays a summary of the active filters for a specific resource or lens.

Default Preview:

Stacked Preview:


Installation

Using Composer:

For Nova 4, use the current version. For older ones, use v1 of this package.

Nova v4:

Nova v1-3:

Usage

Add it to the array returned by the cards method inside a Nova Resource or Lens.

Stacked

To use the stacked template, use FiltersSummary::make()->stacked().


Translation

To translate the three used words: active, filter, and filters, simply translate them using Laravel $lang.json file.


Custom Filter Summary Resolvers

The plugin knows how to display the information of the default Nova filters, but you might need to use custom filters. In that case, you'll probably need to create a custom template for the filter summary.

E.g.: I had a custom filter that allows a user to pick a numeric range of a specific column. You could use it to select products that have prices between 5 and 20 USD.

Now, because the filter maps to an object like this:

{ from: 5, to: 20 }

The summary would simply list that as its value, which isn't very pretty.

Therefore, if you want to customize that, you need to create a custom summary resolver for that filter.

The setup is pretty straight forward:

I usually create the definition inside the filter's index.js file and it looks like this:

Author

Buy Me A Coffee


All versions of nova-filters-summary with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
laravel/nova Version ^4.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 degecko/nova-filters-summary contains the following files

Loading the files please wait ....