Download the PHP package bloatless/pile without Composer

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

Pile

Dead simple centralized logging.

Installation

To install Pile just clone this repository to your server:

Documentation

Log message structure

The general structure of a log message to be send to the Pile API should be as follows:

key type description
source¹ string An identifier describing the source of the log message. (e.g. the project name)
message¹ string The actual log message.
level¹ int A valid log level code. (See listing below)
context array Arbitrary data passed together with the log message.
channel string The channel this message was logged to.
datetime string Date and time when the message was logged. (Format: YYYY-MM-DD HH:ii:ss)
extra array Additional data added by the processor.

¹ = field is required

Log levels

Valid log level codes are:

code level name
100 debug
200 info
250 notice
300 warning
400 error
500 critical
550 alert
600 emergency

Sending logs to your Pile instance

Using HTTP REST API

Log messages can be sent to your Pile instance using a simple post request:

Be sure to include an API key within the request header.

Using Monolog Handler

If you are using Monolog in your project you can also use the MonoPile package which provides a handler and formatter for Monolog to easily send error-logs to your Pile instance.

Cleanup

Old log entries can be regularly deleted using the cleanup script:

php cli/cleanup.php

This will delete old log entries from the database. The "lifetime" of log entries can be configured within the config/config.php file.

It is recommended to regularly call the cleanup script using a cronjob.

License

MIT


All versions of pile with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
ext-mbstring Version *
bloatless/endocore Version v0.5.0.x-dev
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 bloatless/pile contains the following files

Loading the files please wait ...