Download the PHP package se7enxweb/expquery-translator without Composer

On this page you can find all versions of the php package se7enxweb/expquery-translator. 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 expquery-translator

Exponential Query Translator

General description

Exponential Query Translator (extension name: expquery_translator) is a Galach search query parser and node filter for Exponential CMS (eZ Publish Legacy). It is a port of the well-known netgen/query-translator library into the legacy extension ecosystem and provides the following capabilities:

What is included:

The lib/ directory is the upstream netgen/query-translator library, unmodified. Only the expQueryTranslator adapter in classes/ is custom. Tags (#tag) are mapped to content class identifiers because that is the most common filtering need in this legacy stack.

Features

Exponential Query Translator provides the following features in detail:

Key classes

Class File Purpose
expQueryTranslator classes/expquerytranslator.php Adapter: analyze(), filterNodes(), buildSubtreeParams()
QueryTranslator\Languages\Galach\Tokenizer lib/Languages/Galach/Tokenizer.php Upstream Galach tokenizer
QueryTranslator\Languages\Galach\TokenExtractor\Full lib/Languages/Galach/TokenExtractor/Full.php Full token extractor (words, phrases, tags, users, operators)

Galach syntax support

The Full token extractor supports the complete Galach search language:

Adapter behaviour

Extensibility

Version

Copyright

License

Exponential Query Translator is licensed under the GNU General Public License.

The complete license agreement is included in the LICENSE.md file.

Exponential Query Translator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version.

Exponential Query Translator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU GPL gives you the right to use, modify and redistribute Exponential Query Translator under certain conditions. The GNU GPL license is distributed with the software, see the file LICENSE.md.

It is also available at https://www.gnu.org/licenses/gpl.txt

You should have received a copy of the GNU General Public License along with Exponential Query Translator in LICENSE.md. If not, see https://www.gnu.org/licenses/.

Using Exponential Query Translator under the terms of the GNU GPL is free (as in freedom).

For more information or questions please contact [email protected]

Requirements

The following requirements exists for using Exponential Query Translator extension:

Exponential CMS / eZ Publish Legacy version

PHP version

Composer autoloader mapping

Installation

Installation is the standard legacy extension procedure: place the extension in extension/expquery_translator, activate it via [ExtensionSettings] ActiveExtensions[] (or ActiveAccessExtensions[] for a single siteaccess), regenerate the extension autoloads, verify the Composer PSR-4 mapping and clear all caches.

See the complete step-by-step instructions in INSTALL.md.

Usage

The adapter is a single class you can instantiate anywhere the kernel is bootstrapped - modules, block handlers, cronjobs and CLI scripts:

analyze() returns structured buckets:

The recommended pattern is fetch-then-filter: narrow the database fetch with buildSubtreeParams() (tags become class filters), then post-filter the words and phrases with filterNodes():

For full Galach parsing beyond what the adapter extracts, use the upstream library directly:

The QueryTranslator\Languages\Galach\Parser class (also in lib/) builds a full syntax tree when boolean logic and grouping are needed.

See doc/USAGE.md for verified, copy-ready examples - Layouts block handlers, manual collection filtering, admin list filtering, module views with search - and for the customization guide covering all three layers: the settings layer (this extension ships no INI file; tunables travel as method arguments), the template layer (no templates shipped; presentation is owned by the caller) and the PHP layer (safe subclassing points getTokenValue() and nodeMatches(), and swapping the token extractor). Additional copy-and-paste snippets are collected in EXAMPLES.md.

Documentation

Document Description
INSTALL.md Activation, Composer autoload setup and verification
EXAMPLES.md Extended copy-and-paste code snippets
doc/USAGE.md Verified code examples plus the settings / template / PHP customization layers
doc/FAQ.md Answers to the most common questions
doc/TODO.md Known gaps and planned improvements
doc/SUPPORT.md How and where to get help
LICENSE.md The complete GNU General Public License agreement

Troubleshooting

Read the FAQ

Use our support systems


All versions of expquery-translator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.4
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 se7enxweb/expquery-translator contains the following files

Loading the files please wait ...