Giter Club home page Giter Club logo

phploc's Introduction

PHPLOC

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

Installation

There a two supported ways of installing PHPLOC.

You can use the PEAR Installer to download and install PHPLOC as well as its dependencies. You can also download a PHP Archive (PHAR) of PHPLOC that has all required dependencies of PHPLOC bundled in a single file.

PEAR Installer

The following two commands (which you may have to run as root) are all that is required to install PHPLOC using the PEAR Installer:

pear config-set auto_discover 1
pear install pear.phpunit.de/phploc

PHP Archive (PHAR)

wget http://pear.phpunit.de/get/phploc.phar
chmod +x phploc.phar

Usage Example

โžœ ~ phploc /usr/local/src/phpunit/PHPUnit
phploc 1.7.0 by Sebastian Bergmann.

Directories:                                         16
Files:                                              117

Lines of Code (LOC):                              27640
  Cyclomatic Complexity / Lines of Code:           0.12
Comment Lines of Code (CLOC):                     13771
Non-Comment Lines of Code (NCLOC):                13869

Namespaces:                                           0
Interfaces:                                           6
Traits:                                               0
Classes:                                            109
  Abstract:                                           9 (8.26%)
  Concrete:                                         100 (91.74%)
  Average Class Length (NCLOC):                     125
Methods:                                            723
  Scope:
    Non-Static:                                     498 (68.88%)
    Static:                                         225 (31.12%)
  Visibility:
    Public:                                         510 (70.54%)
    Non-Public:                                     213 (29.46%)
  Average Method Length (NCLOC):                     18
  Cyclomatic Complexity / Number of Methods:       3.34

Anonymous Functions:                                  0
Functions:                                          128

Constants:                                           33
  Global constants:                                   1
  Class constants:                                   32

phploc's People

Contributors

sebastianbergmann avatar wpsmith avatar sgoettschkes avatar christeredvartsen avatar ihabunek avatar edorian avatar kukulich avatar michaelbrooks avatar tommygnr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.