Download the PHP package hopex/simplog without Composer

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

Simple data logging

Package version Package version PHP version License

The library contains a simple class, and it's facade, for simple data and exception logging on JSON format.

Installing

Documentation

Methods Description Example for usage
setWorkDirectory Specifies the root directory of the hierarchy of logging levels. It can take several directories in turn one after the other in the form of a standard path. setWorkDirectory('logging')
setWorkDirectory('logging/sub-folder')
setLevel Specifies the name of the directory where you want to save the logging file. It can't take several directories in turn one after the other in the form of a standard path. setLevel('requests')
setTimeZone Specifies the current timezone. setTimeZone('UTC')
setTimeZone('Europe/Amsterdam')
setDateFormat Sets the time format in the main key of one log element in the logging file. Will not be used if V is specified. setDateFormat('H:i:s')
setDateFormat('(Y) H:i:s')
setItemKey Sets the primary key of one log element in the logging file. In this case, the current time will not be indicated. setItemKey('custom-key')
setItemsLimit Sets the maximum number of elements in a single logging file. The value must be greater than zero. By default, 1000 keys. setItemsLimit(10)
setItemsLimit(5000)
setPermissions Sets access rights to the logging file. setLogFilePermissions(0755)
setLogFilePermissions(644)
setFileName Sets the name of the logging file. setFileName('my-requests-logs')
error Logging any object as an error message. Similarly as for custom.
warning Logging any object as a warning. Similarly as for custom.
info Logging of any object as an informational message. Similarly as for custom.
custom Logging of any object. custom(new SomeClass())
custom('Some message')
custom(['key' => 'value'])
exception Logging of the exception object with the possibility of adding additional keys. exception(new \Exceptions())
exception(new \Exceptions(), true)
exception(new \Exceptions(), false, ['key' => 'value'])
clearLevel The requirement to clear the directory where the logging file should be saved from other files. clearLevel()

All versions of simplog with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
ext-json Version *
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 hopex/simplog contains the following files

Loading the files please wait ....