Download the PHP package ousamabenyounes/log2test without Composer

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

log2test

Monthly Downloads Build Status SensioLabsInsight

Log2Test is a PHP application that allows you to transform your Production Log into test.
You can export your log to the following stack:

Why exporting your production log files to tests?

Install

How to use

Let's now see how Log2Test works step by step as seen on the screencast gif file bellow

Configuration

Open configuration file:

Here are all the configuration file's properties:

Property Type Description Default
hostConfig String Array List of hosts to parse see samples here
logFile String Path to your access log file log/test.log
testStack String Available test stack: "PhpunitSelenium" or "Curl" or "PhpunitCurl Curl
beginLine Int Begin parsing at line X 0
numberOfLine Int Number of lines to parse 300
logParserClass String Your log parsing class \Log2Test\Parser\Log\Apache2LogParser
logFormat String Detail the log format of your acces log file '%h %l %u %t \"%r\" %>s %b'
extensions_allowed Array Only parse files matching these extentions [php, html]
browsers Array List of browsers -> only for phpunit_selenium stack chrome
removeDuplicateUrl Boolean If you want to remove duplicate urls true
pauseBetweenTests Int Add a pause between all generated tests 0
encodedUrls Boolean Allows you to encode all parsed urls true
enabledScreenshot Boolean Take a screenshot on each test false
testResultFormat string Test result format "xml" or "json" xml

Requirements

Phpunit
Selenium Server (only needed if you choose phpunit_selenium as your test stack)

Test

Log2test is tested with PHPUNIT & Behat

On each commit, a complete build is launched on http://travis-ci.org/ousamabenyounes/log2test/

Host Sample

You can provide a simple strings like this:

You can also provide an array with source / destination value

The first case is the source host you will be searching on your apache logs
The second case is the destination host which will be used on generated tests
We recommend using the second format, so your production website is not affected by the heavy tests you'll launch'

Todo

Add Global Reporting
Add YellowLabTools option on parsing

Contributors


All versions of log2test with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
kassner/log-parser Version ~1.0
symfony/yaml Version ^3.1
incenteev/composer-parameter-handler Version ~2.0
cedriclombardot/twig-generator Version ^1.1
jasny/twig-extensions Version ^1.0
phpunit/phpunit Version 5.5.*
phpunit/phpunit-selenium Version >=1.2
symfony/filesystem Version ^3.1
symfony/console Version ^3.1
symfony/process Version ^3.1
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 ousamabenyounes/log2test contains the following files

Loading the files please wait ....