Download the PHP package antevemus/alinq-parallel without Composer

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

Antevemus ALinq Parallel

CI Latest Stable Version PHP Version License: MIT Core: ALinq

The CPU-parallel companion of ALinq for PHP 8.4+
selectParallel(), whereParallel(), selectManyParallel() and eachParallel() run each item's work in a pool of worker PHP processes (proc_open(), no extension required), through an ordered, bounded, lazy window of items in flight, and the result is a core ALinq lazy collection, so every core operator chains after it. For CPU work per item: parsing, hashing, rendering, computing.


🇧🇷 Português (Brasil)


The documentation lives in docs/pt-BR (Portuguese, Brazil), one page per topic, in the Docs Kit format (a docs-nav.json per language), and every PHP block of the pages is run by the test suite.


🚀 Quick Start

The same block opens Getting Started, which also shows App\Work\Primes, a plain class of the application that the workers load through its Composer autoloader; the test suite runs the block with the answer written in its comments:


📦 Installation

Install via Composer: composer require antevemus/alinq-parallel. Requirements: PHP 8.4 or later, with proc_open() enabled; installed with it: antevemus/alinq-collection ^2.3 (the core, same author; 2.3.0 for the declared shape of a generator stage). No PHP extension is required: no pcntl, no posix, no parallel.

The work runs in another process, so it must travel there: a public static method ([Primes::class, 'countBelow'], Primes::countBelow(...)), a function, or a serializable invokable object; an anonymous closure is refused before any process starts, because PHP cannot serialize a Closure. Measured on 12 CPUs loaded by other work (load average 18.6), 16 items of about 200 ms of CPU each: 3 084 ms through the core select(), 1 733 ms through selectParallel(workers: 2), 1 305 ms with 4 workers and 875 ms with 8; 16 trivial items cost 98 to 134 ms through a pool started for the traversal (starting PHP) and about 1 ms through a pool already started, against 0.02 ms through select() (Tests).


📚 Documentation

Getting started

Concepts

API reference

Internals

Quality

Project


🧪 Quality


🗺️ Roadmap & Ecosystem

The release shipped and what comes next: Antevemus.AlinqRevolt.


📄 License & Authors

This software is open-source, licensed under the MIT License.


All versions of alinq-parallel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
antevemus/alinq-collection Version ^2.3
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 antevemus/alinq-parallel contains the following files

Loading the files please wait ...