Download the PHP package debugrammer/php-graylog-query-builder without Composer

On this page you can find all versions of the php package debugrammer/php-graylog-query-builder. 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 php-graylog-query-builder

Graylog Query Builder for PHP build

PHP version of Graylog Search Query Builder especially useful for working with Graylog REST API.

Latest Stable Version Total Downloads License

Getting Started

PHP versions 7.0 up to PHP 7.4 are currently supported. Graylog Query Builder for PHP is recommended to use composer to install the library.

Add php-graylog-query-builder to composer.json either by running composer:

or by defining it manually:

Usage

Above code snippet generates the string below.

Building Queries

1. Statements

1.1. Term

Messages that include the term or phrase.

Usage:

Output:

1.2. Fuzz Term

Messages that include similar term or phrase.

1.2.1. Fuzziness with default distance

Usage:

Output:

1.2.2. Fuzziness with custom distance

Usage:

Output:

1.3. Exists

Messages that have the field.

Usage:

Output:

1.4. Field

1.4.1. Field (String)

Messages where the field includes the term or phrase.

Usage:

Output:

1.4.2. Field (Numeric)

Messages where the field includes the number.

Usage:

Output:

1.4.3. One side unbounded range query

Messages where the field satisfies the condition.

Usage:

Output:

1.5. Fuzz Field

Messages where the field includes similar term or phrase.

1.5.1. Fuzziness with default distance

Usage:

Output:

1.5.2. Fuzziness with custom distance

Usage:

Output:

1.6. Range

1.6.1. Range query

Ranges in square brackets are inclusive, curly brackets are exclusive and can even be combined.

Usage:

Output:

1.6.2. Date range query

The dates needs to be UTC.

Usage:

Output:

1.6. Raw

Raw query.

Usage:

Output:

2. Conjunctions

2.1. And

Usage:

Output:

2.2. Or

Usage:

Output:

2.3. Not

Usage:

Output:

3. Parentheses

Usage:

Output:

Advanced Usage

Sometimes you might want to compose dynamic queries by condition.

1. Prepend Graylog query

Usage:

Output:

2. Append Graylog query

Usage:

Output:


All versions of php-graylog-query-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.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 debugrammer/php-graylog-query-builder contains the following files

Loading the files please wait ....