Download the PHP package pdaleramirez/super-filter without Composer

On this page you can find all versions of the php package pdaleramirez/super-filter. 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 super-filter

Super Filter plugin for Craft CMS 4.x

Build your search page with search filters from your element fields and filter element entries by categories, tags, element relations, products (Craft Commerce) and other fields. Easily setup your search page by using twig variable functions, back-end coding not needed. Supports Vue.js with pre-built styles.

Demo: super-filter-page

Requirements

This plugin requires Craft CMS 4.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project  
  2. Then tell Composer to load the plugin:

    composer require pdaleramirez/super-filter  
  3. In the Control Panel, go to Settings -> Plugins and click the “Install” button for Search Filter.
  4. Go to Super Filter -> Setting and click Install Example Data button to generate example entries (Optional).

Configuring Search Filter

  1. Create a new setup entry in the Setup Search tab and click on New Setup.
  2. Setup Config:
    • Title: Used for easy identification of your setup.
    • Handle: Necessary to initialize the search setup.
    • Items per page: The number of entries on the page during content load or pagination.
    • Base Template: If no template is found in the template override folder, it will fallback to pre-built base templates. There are only two options: Plain for traditional form reload and Vue for reactive form submission.
    • Watch Fields?: For Vue templates, this option watches the fields and filters items automatically.
    • Infinite Scroll?: For Vue templates, this option loads more items on scroll.
    • Template Override Folder: The folder containing the templates to override, modifying Vue or HTML files. The items.twig or items.vue must be copied to this folder to modify element attributes.
    • Element: The element type of the items or entries to be displayed.
    • Container: Section, group, or product type for an element.
    • Sort Fields: Drag fields to the selected column to be displayed on the sorting template for sorting elements.
    • Initial Sort: The default sort query on page load.
    • Search Fields: Drag fields to the selected column to be displayed on the search field template for filtering elements.

Using Super Filter

  1. To override a template or templates of the twig function from the selected base pre-built style templates. You can create the twig or vue file or open the super-filter plugin folder and copy a template or templates to the site template override folder path you specified on your configuration

2.

Vue Base Template

Use this twig function and pass handle.

Craft Commerce

If you are using craft commerce and don't want to return the default variants attribute on search results. You can add a super-filter.php setting file in the config folder with this value.

Recommendation

Vue Base Template

in your items.vue only the initialized attributes and field values are displayed. It will be called like this

Customization

Vue Base Template

Plain Base Template

Generate Console Command

Generate Example Data and Template Files

To generate example data with associated twig templates follow this steps:

  1. SSH to your server and run craft console command.
  2. Run the command php craft super-filter/generate/example. This will create example entries and create template files.
  3. After running command, visit your url https://your-url.test/super-filter-page you should be able to see Shows Entries Search Page.

Generate Setup Search Template Files

To generate initial items.vue template for a Setup Search:

  1. SSH to your server and run craft console command.
  2. Run the command php craft super-filter/generate/templates
  3. Enter a search setup handle: {theSetupSearchHandle}

Contact me for inquiries or if you require more customization. [email protected]


All versions of super-filter with dependencies

PHP Build Version
Package Version
Requires craftcms/cms 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 pdaleramirez/super-filter contains the following files

Loading the files please wait ....