Download the PHP package moirei/hogql without Composer

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

moirei/hogql

This PostHog (HogQL) Laravel Query Builder package enables you to interact with PostHog's HogQL API using Laravel's query builder. This package simplifies the process of building and executing analytical queries, allowing you to leverage Laravel's intuitive query syntax while working with PostHog's powerful data analytics platform.

Features

Installation

Publish the config (optional).

Setup

After installation, you'll need to obtain your Product ID and a personal API key. This key will need atleast query:read scope.

Update your .env file with POSTHOG_PRODUCT_ID and POSTHOG_API_TOKEN accordingly.

Usage

Note: the get() operation always transforms the raw result. E.g. the query above returns a collection of arrays with event_name and event_count keys/values.

Extended usage

Get a DB Query Builder instance:

Start a query with select statement:

Referencing aliases:

Setup aliases in config:

Reference them via selects:

Get an Eloquent Query Builder instance:

Returns eloquent model instances.

Parse a query string:

Get the results of a string query:

Get the raw results of a string query:

Returns the raw original HogQLQueryResponse response.

With moirei/eloquent-metrics:

moirei/eloquent-metrics is Chartjs compatible.

Tests

Contribution Guidelines

Any pull requests or discussions are welcome. Note that every pull request providing new feature or correcting a bug should be created with appropriate unit tests.

License

The MIT License (MIT). Please see License File for more information.


All versions of hogql with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/contracts Version ^6|^7|^8|^9|^10|^10
illuminate/support Version ^6|^7|^8|^9|^10|^10
illuminate/database Version ^6|^7|^8|^9|^10|^10
greenlion/php-sql-parser Version ^4.6
laravel/helpers Version ^1.7
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 moirei/hogql contains the following files

Loading the files please wait ....