Download the PHP package zguillez/php-xmlog without Composer

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

php-xmlog

License Join the chat at https://gitter.im/zguillez/php-xmlog

PHP module for create XML and LOG files

Getting Started

Add package to composer.json

composer require zguillez/php-xmlog

//packaje.json
{
    "require": {
        "zguillez/php-xmlog": "^1.1.3"
    }
}

Usage:

require 'vendor/autoload.php';

use Z\Log;

$params["filename"] = "register";
$params["path"] = "./logs/";

$log = new Log($params);

On this example, "register" is the name of the log file and "./logs" is the folder on this files will be saved. This folder must exits and have write permitions.

$log->insert('This is an update!');

This will create a file "register.log" with the text "This is an update!".

For create a XML file instead LOG file:

$params["type"] = Log::XML;

Options (true/false):

1 dated:

$params["dated"]  = true;

Create a dated file name:

2 clear:

$params["clear"]  = true;

Overwrite last file:

3 backup:

$params["backup"] = true;

Backup last file:

Configuration:

You can override the log options by a config function.

$log->config(["dated"=>true]);

Example:

require 'vendor/autoload.php';

$params["type"]   = Log::LOG;
$params["filename"]   = "register";
$params["path"]   = "./logs/";
$params["dated"]  = false;
$params["clear"]  = false;
$params["backup"] = false;

$log = new Log($params);

$log->config(["dated"=>true]);

$log->insert('This is update one!');
$log->insert('This is update two!');

Contributing and issues

Contributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue or send me an email.

License

©2019 Zguillez.io

Original code licensed under MIT Open Source projects used within this project retain their original licenses.

Changelog

v1.1.0 (September 9, 2016)

v1.0.0 (March 12, 2016)


All versions of php-xmlog 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 zguillez/php-xmlog contains the following files

Loading the files please wait ....