Download the PHP package xtompie/flux without Composer

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

flux

Event and Log Management Tool. Data processing pipeline created in PHP. Efficiently collect, parse, and transform logs. Highly customizable and extensible for your needs.

Requirments

Installation

Using skeleton

xtompie/flux-skeleton

Docs

Machine

Entrypoint of flux is Machine. Machine have programs and finishes.

Program

Program has unique name, starts, inputs, filters, outputs, stops.

Start

Each starts is called at beging of program. They are designed to prepare data. An example of start can be a rsync which will download data from an external server to a local folder or unpack an archive. See: Start

Input

Next each input is called. Input generates a entry of type string. Each generated entry is individually and immediately passed to filters. An example input can be a generator that generates an entry from each line of file. See: Input

Filter

Entry is passed into each filter. Filter can modify the entry. Filter can return null then the entry will not be further processed. See: Filter

Output

Entry returned from filters is passed to each output. An example output can append the entry to file. See: Output

Stop

Each stop is called at end of program. A clean up can be done in stop. See: Stop

Finish

Machine have finishse. Finishes are called after the desired program/programs are executed. It is similar to stop but for machine. See: Finish

SetUp and TearDown

Starts, inputs, filters, outputs and stops can implement SetUp, TearDown interfaces.

SetUp is used at the beginning of program startup before starts are called.

TearDown is used at the end of program execution after each stop is called.

Built-in components

Usage

flux.php:

Then in shell php flux.php runall.

Programs can be run by:

Log monitor example

Application that will collect logs from many application or serwers.

flux.php:

Then in shell php flux.php runall.

With OnceFilter the log/ directory will bahave like inbox. Only new entries will be stored in log/. Entries from log/ can be manually deleted. CountFilesLinesFinish will tell how meany new entries are in log/.

Project tool example

Tool in project that will help track application error from test and prod server.

Create folder tools/log in project root directory. cd tools/log. composer require xtompie/flux This will output:

No composer.json in current directory, do you want to use the one at ../../? [Y,n]? Type n. This should create composer.json, composer.lock and vendor. Create .gitignore with contents:

Create flux.php and modify it for your needs:

Then in project root directory in composer.json add scripts:

Now from your project root directory with composer log-dev u can easily fetch new error logs.


All versions of flux with dependencies

PHP Build Version
Package Version
No informations.
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 xtompie/flux contains the following files

Loading the files please wait ....