Download the PHP package chr0n1x/php-coveralls without Composer

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

php-coveralls

Build Status Coverage Status Dependency Status

Latest Stable Version Total Downloads

PHP client library for Coveralls.

API doc

API doc is generated by ApiGen

Prerequisites

Installation

To install php-coveralls with Composer, just add the following to your composer.json file:

Then, you can install the new dependencies by running Composer’s update command from the directory where your composer.json file is located:

You can see this library on Packagist.

Composer installs autoloader at ./vendor/autoloader.php. If you use php-coveralls in your php script, add:

If you use Symfony2, autoloader has to be detected automatically.

Or you can use git clone command:

Configuration

Currently support clover style coverage report. php-coveralls collect coverage information from clover.xml.

PHPUnit

Make sure that phpunit.xml.dist is configured to generate "coverage-clover" type log named clover.xml like the following configuration:

You can also use --coverage-clover CLI option.

phpcov

Above settings are good for almost projects If your test suite is executed once a build and is not devided into several parts. But if your test suite is configured as parallel task or generates multiple coverage reports through a build, you can use either coverage_clover configuration in .coveralls.yml (see below coverage clover configuration section) to specify multiple clover.xml or phpcov for processing coverages reports.

composer.json

phpcov is not ready for Packagist yet but you can install it via PEAR channel:

phpunit configuration

Make sure that phpunit.xml.dist is configured to generate "coverage-php" type log:

You can also use --coverage-php CLI option.

phpcov configuration

And then, execute phpcov.php to merge coverage.cov logs.

clover.xml

php-coveralls collects count attribute in a line tag from clover.xml if its type attribute equals to stmt. When type attribute equals to method, php-coveralls excludes its count attribute from coverage collection because abstract method in an abstract class is never counted though subclasses implement that method which is executed in test cases.

Travis CI

Add php vendor/bin/coveralls to your .travis.yml at after_script.

CircleCI

Add pecl install xdebug to your circle.yml at dependencies section since currently Xdebug extension is not pre-installed. composer and phpunit are pre-installed but you can install them manually in this dependencies section. The following sample uses default ones.

Add php vendor/bin/coveralls to the "Test commands" textarea on Web UI (Edit settings > Tests > Test commands textarea).

Please note that COVERALLS_REPO_TOKEN should be set in the same line before coveralls command execution. You can not export this variable before coveralls command execution in other command since each command runs in its own shell and does not share environment variables (see reference on CircleCI).

Codeship

You can configure CI process for Coveralls by adding the following commands to the textarea on Web UI (Project settings > Test tab).

In the "Modify your Setup Commands" section:

In the "Modify your Test Commands" section:

Next, open Project settings > Environment tab, you can set COVERALLS_REPO_TOKEN environment variable.

In the "Configure your environment variables" section:

From local environment

If you would like to call Coveralls API from your local environment, you can set COVERALLS_RUN_LOCALLY envrionment variable. This configuration requires repo_token to specify which project on Coveralls your project maps to. This can be done by configuring .coveralls.yml or COVERALLS_REPO_TOKEN environment variable.

php-coveralls set the following properties to json_file which is sent to Coveralls API (same behaviour as the Ruby library will do except for the service name).

CLI options

You can get help information for coveralls with the --help (-h) option.

.coveralls.yml

php-coveralls can use optional .coveralls.yml file to configure options. This configuration file is usually at the root level of your repository, but you can specify other path by --config (or -c) CLI option. Following options are the same as Ruby library (see reference on coveralls.io).

Following options can be used for php-coveralls.

coverage clover configuration

You can specify multiple clover.xml logs at coverage_clover. This is useful for a project that has more than two test suites if all of the test results should be merged into one json_file.

Change log

See changelog

Wiki

See wiki


All versions of php-coveralls with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
ext-json Version *
ext-simplexml Version *
symfony/yaml Version >=2.0
symfony/console Version >=2.0
symfony/config Version >=2.0
symfony/stopwatch Version >=2.2
guzzle/guzzle Version >=2.7
psr/log Version 1.0.0
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 chr0n1x/php-coveralls contains the following files

Loading the files please wait ....