Download the PHP package hertel/phploc without Composer

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

PHPLOC

phploc is a tool for quickly measuring the size of a PHP project.

About this fork

PHPLOC was created and maintained by Sebastian Bergmann as phploc/phploc from 2009 onwards, until he stopped maintaining it and kept the repository for archival purposes. Every idea, every metric, and the shape of the report are his work, and this fork stands entirely on it. Thank you, Sebastian.

This fork exists for one reason: OSS Complexity Report runs phploc at its core, so the tool needs a maintained home. It is published as hertel/phploc and maintained by Christopher Hertel, under the original BSD-3-Clause license with the original copyright notice intact.

That purpose is what this fork is built around, and it is worth being explicit about what it means, because it is not the same as continuing the original project:

If you want the original, unchanged, use phploc/phploc. If you want a phploc that is still maintained and is happy to keep moving, use this one.

This fork is not affiliated with, supported by, or endorsed by Sebastian Bergmann. Please report issues with it here, never to the original project.

Installation

This tool is installed using Composer:

Pass --json to get the result as JSON instead of as the text report, for example to feed it into another tool:

Usage Example

Test classes and test methods are always reported in the Tests section of their own instead of being measured as production code, so pointing phploc at a whole project keeps the numbers about the production code:

Test classes of PHPUnit, Codeception, and PhpSpec are recognised, as are Pest files, in which every file that declares tests counts as one test class and every test() / it() call as one test method.


All versions of phploc with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
ext-dom Version *
ext-json Version *
sebastian/cli-parser Version ^1.0
sebastian/version Version ^3.0
phpunit/php-file-iterator Version ^3.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 hertel/phploc contains the following files

Loading the files please wait ...