Download the PHP package nalabdou/algebra-php without Composer

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

algebra-php

Pure PHP relational algebra engine.

JOIN · PIVOT · WINDOW · GROUP BY · 60+ operations · Zero framework dependency.

PHP


Why algebra-php?

You have two arrays from Doctrine, an API response, or a CSV file. You need to join them, group them, compute running totals, and build a pivot table — all in PHP, all in one readable pipeline.

Without algebra you write nested loops, multiple array_filter calls, manual aggregation, and bespoke pivot code spread across multiple methods. With algebra-php you write this:


Installation

Requires PHP 8.2+.


Quick start


All operations

Entry point


Joins


Set operations


Filter & projection


Grouping & aggregation


Window functions


Pivot


Sorting & slicing


Structural operations


Terminal operations


Expression language

String expressions use ExpressionLanguage. The row is exposed as item:

Built-in functions: length, lower, upper, trim, abs, round, contains.

Closures are always supported and run with zero ExpressionLanguage overhead:


Pipeline branching

Pipelines are immutable — pipe() always returns a new instance. Branch freely:


Query planner

The QueryPlanner automatically rewrites the declared operation order before execution. Filters are pushed before joins, redundant sorts eliminated, consecutive maps collapsed — without changing the result.

Inspect the plan:


Execution log

Every MaterializedCollection carries a per-operation execution log:


Custom aggregates


Custom adapters

Register in a custom CollectionFactory or use the framework bundles:


Parallel execution


Running the demos


Running tests


Architecture


Versioning

MAJOR.MINOR.FIX — Versioning follows this scheme:


License

MIT — Nadim Al Abdou


All versions of algebra-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 nalabdou/algebra-php contains the following files

Loading the files please wait ...