Download the PHP package neighborhoods/kojo-worker-decorator-component without Composer

On this page you can find all versions of the php package neighborhoods/kojo-worker-decorator-component. 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 kojo-worker-decorator-component

Kōjō Worker Decorators

A set of useful decorators for a typical Kōjō Worker.

Install

Via Composer

Versioning

Don't confuse releases on packagist, e.g. 4.0.0, with versions of components contained within this package, e.g. ExceptionHandlingV1. One release may contain multiple versions of the same component.
Parts of your code may use older versions of components, while others use the latest.

Upgrade

For upgrading from release 3 to release 4 follow the Upgrade Guide.

Usage

Components fall into one of two categories

The Worker Decoration is about decorating the worker. The Worker Decoration mostly contains interfaces. It determines how the worker looks like, how the decorators look like, how to define the stack of decorators to be used, how to obtain a decorated worker ready for usage.
There might be multiple versions of worker decoration, e.g. WorkerDecorationV1 and WorkerDecorationV2.

A Worker Decorator provides a specific functionality to the decorated worker. Multiple decorators can be used on the same worker.
A worker decorator is made for a specific version of Worker Decoration. All decorators compatible with WorkerDecorationV1 are placed in the src/WorkerDecorationV1Decorators folder.
There are different functionalities, e.g. exception handling, crash threshold. There is a set of recommended predefined decorators to be used on each worker. Check the specific Worker Decoration version for more details.
The same functionality may have multiple versions, e.g. ExceptionHandlingV1, ExceptionHandlingV2. Use the latest version if possible.
You can implement your own decorator.

For usage details and list of predefined decorators please refer to the corresponding Worker Decoration version.

Buphalo integration

Buphalo templates are available for workers and custom decorators as well as their accompanying files. Read the specific version documentation for more details.

Prerequisites

The Buphalo templates are provided in a custom template tree. Support for multiple template trees has been added to Buphalo in version 1.1. Ensure you have Buphalo version 1.1 or above installed.
You probably have a script in your project's bin folder running vendor/bin/buphalo with all the needed environment variables. Edit the environment variable for template tree directory paths to include the template tree contained in this package. The environment variable definition might be as below.

The export above assumes that you have no other custom template trees.

Examples

Application examples are available in the Fitness project.


All versions of kojo-worker-decorator-component with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8
ext-pdo Version *
neighborhoods/kojo Version ^5
neighborhoods/exception-component Version ^1.0.5
neighborhoods/throwable-diagnostic-component Version ^4
neighborhoods/dependency-injection-container-builder Version ^1.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 neighborhoods/kojo-worker-decorator-component contains the following files

Loading the files please wait ....