Download the PHP package tacman/ux-search without Composer

On this page you can find all versions of the php package tacman/ux-search. 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 ux-search

Mezcalito UX Search — tacman/ux-search soft-fork

[!WARNING] This is a temporary soft-fork of mezcalito/ux-search. It is published as tacman/ux-search and replaces mezcalito/ux-search, but keeps the original Mezcalito\UxSearchBundle namespace — there are no code/import changes. It exists only to carry patches that survos/search-bundle depends on while they are in review upstream: Mezcalito/ux-search#49 and #50. When those are merged and released, this fork will be marked abandoned in favor of the upstream package. Depend on mezcalito/ux-search directly unless you specifically need those patches.

Latest Version License PHP Version

A powerful, flexible, and easy-to-use search and faceted search system for Symfony applications, built with Twig Components and Live Components.

View Live Demo | Report Issues


Why Use This Bundle?

Features

Requirements

Installation

Install the bundle via Composer:

If you're not using Symfony Flex, you'll need to manually register the bundle in config/bundles.php:

Quick Start

1. Configure an Adapter

Create a configuration file config/packages/mezcalito_ux_search.yaml:

Add the DSN to your .env file (choose one):

2. Create Your First Search

Use the maker command to generate a search class:

The command will ask you for:

This creates a search class in src/Search/ that you can customize.

3. Render the Search in Your Template

In any Twig template:

That's it! You now have a working search with facets, pagination, and live updates. 🎉

Choosing an Adapter

Three adapters are available, each with different strengths:

Adapter Best For Performance Cost Setup Complexity
Algolia Production, large datasets ⭐⭐⭐ 💰 Paid Easy
Meilisearch Self-hosted production ⭐⭐⭐ 🆓 Free Medium
Doctrine Development, small datasets ⭐⭐ 🆓 Free Very Easy

Adapter DSN Format

Adapter DSN Format Documentation
Algolia algolia://apiKey@appId View docs
Meilisearch meilisearch://key@host:port View docs
Doctrine doctrine://entityManagerName View docs

Need another provider? You can create your own adapter.

Customizing Your Search

Adding Facets, Sorting, and More

Once you've created a search class, customize it by editing the build() method:

📖 Full customization guide

Customizing the UI

The bundle provides a complete set of UI components that you can use individually or override:

Core Components

Component Description Documentation
Layout Root wrapper component containing all search elements Docs
SearchInput Text search input with live updates Docs
Hits Display search results with customizable item templates Docs
Pagination Navigate through search results Docs

Facet Components

Component Description Documentation
RefinementList Checkbox/radio list for categorical filtering Docs
RangeInput Min/max input fields for numeric ranges Docs
RangeSlider Slider for numeric range filtering Docs

Utility Components

Component Description Documentation
CurrentRefinements Display active filters with remove buttons Docs
ClearRefinements Button to clear all active filters Docs
SortBy Dropdown to change sort order Docs
TotalHits Display total number of results Docs

Overriding Templates

You can override any component template by creating a file in your app's templates/ directory:

Custom Hit Template

The most common customization is the hit (result item) template. Override Hits.html.twig:

Advanced Usage

Event System

Customize search behavior with event subscribers:

📖 Event system documentation

Multiple Search Configurations

You can have multiple search configurations in one application:

Each search can have its own adapter, facets, and configuration.

Documentation

Getting Started

Adapters

Components

Advanced

Contributing

Contributions are welcome! Here's how you can help:

  1. Report bugs - Open an issue with a clear description
  2. Request features - Suggest new features with use cases
  3. Submit PRs - Fork, create a feature branch, and submit a pull request
  4. Improve docs - Documentation improvements are always appreciated

Development Setup

Support

License

This bundle is released under the MIT License.


All versions of ux-search with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
nyholm/psr7 Version ^1.0
phpdocumentor/reflection-docblock Version ^5.4|^6.0
symfony/asset Version ^6.4|^7.0|^8.0
symfony/config Version ^6.4|^7.0|^8.0
symfony/dependency-injection Version ^6.4|^7.0|^8.0
symfony/http-client Version ^6.4|^7.0|^8.0
symfony/options-resolver Version ^6.4|^7.0|^8.0
symfony/serializer Version ^6.4|^7.0|^8.0
symfony/ux-live-component Version ^2.20|^3.0
symfony/ux-twig-component Version ^2.20|^3.0
twig/twig Version ^3.8
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 tacman/ux-search contains the following files

Loading the files please wait ...