Download the PHP package jaxwilko/weird-php without Composer

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

WeirdPhp

This project aims to add async support to php via dispatching tasks across multiple processes.

Requirements

Weird requires:

Install

Usage

By default, Weird works with the Promise class, you can also pass callable arguments however you will not receive output from them.

Using the ProcessManager we can dispatch multiple processes across as many processes as we want.

When a new process is created, it loses access to the current global scope, meaning that things such as your autoloader will not be loaded, by default Weird will attempt to load your composer autoload file if found. Alternatively you can provide a file to register your autoloader via the withBootstrap() method.

Because these processes are being ran async, if you want them to be handled you need to tell the process manager when to check up on them. To wait until all active processes have completed, call wait(). Wait also takes a timeout argument which is in seconds as a float.

Alternatively, you can manually call the tick() function, which will check for promises being returned by child processes and process them.

Hints

Hint is a special message that can be sent from a process to give you feedback about what is going on.

To send a Hint, you can call the method \Weird\Messages\Events\Hint::send($message).

A Hint handler can be registered by calling registerHintHandler() on the ProcessManager object.

UnknownMessage

Due to how Weird listens to output streams, any data sent via outputting directly to the buffer will be captured as an UnknownMessage. These can be listened for via calling registerUnknownMessageHandler() on the ProcessManager object.

Processes

Included in Weird is the Thread process, this allows you to execute multiple async php operations. Most of this documentation outlines the usage of Thread, however you can implement your own ParallelProcess class and spawn it with the ProcessManager.

For example:


All versions of weird-php with dependencies

PHP Build Version
Package Version
Requires ext-pcntl Version *
react/event-loop Version ^1.4.0
laravel/serializable-closure Version ^1.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 jaxwilko/weird-php contains the following files

Loading the files please wait ....