Download the PHP package codacy/coverage without Composer

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

Deprecated

This repository is no longer maintained. As an alternative, check codacy-coverage-reporter to send your test coverage results to your Codacy dashboard.

Codacy Badge Codacy Badge Circle CI Latest Stable Version

Codacy PHP Coverage Reporter

Codacy coverage support for PHP. Get coverage reporting and code analysis for PHP from Codacy.

Prerequisites

Installation

Setup codacy-coverage with Composer, just add the following to your composer.json:

Download the dependencies by running Composer in the directory of your composer.json:

codacy-coverage library is available on Packagist.

Add the autoloader to your php script:

Note: We have php5-curl dependency, if you have issues related to curl_init() please install it with:

Alternative Installation (using phar)

Setup codacy-coverage as phar, you can simply download a pre-compiled and ready-to-use version as a phar to any directory. Simply download the latest codacy-coverage.phar file from our releases page:

Latest release

That's it already.

Updating Codacy

To update Codacy, you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API.

Then set it in your terminal, replacing %Project_Token% with your own token:

Note: You should keep your API token well protected, as it grants owner permissions to your projects.

To send coverage in the enterprise version you should:

Usage

Run to see a list of commands.

Basic usage for Clover format:

Basic usage for PHPUnit XML format:

By default we assume that

Optional parameters:

You can specify the path to your report with the second parameter:

Even more control:

Circle CI

This project sends its own coverage during the build in circleCI. Feel free to check our circle.yml, and send your coverage as a step of your build process.

Travis CI

Add codacycoverage to your .travis.yml:

Troubleshooting

If you have a fatal error regarding curl_init():

Run:

What is Codacy?

Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

Among Codacy’s features:

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.

Free for Open Source

Codacy is free for Open Source projects.

License

MIT


All versions of coverage with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
gitonomy/gitlib Version >=1.0
symfony/console Version ~2.5|~3.0|~4.0|~5.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 codacy/coverage contains the following files

Loading the files please wait ....