Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via composer

sebastian/complexity 4.0.0

Library for calculating the complexity of PHP code units
Package summary
Share
0
issues
1
license
2
BSD-3-Clause
Package created
10 Jul 2020
Version published
2 Feb 2024
Maintainers
1
Total deps
2
Direct deps
1
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
nikic/php-parser@v5.0.2
sebastian/complexity@4.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of sebastian/complexity 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
nikic/php-parserv5.0.2-BSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does sebastian/complexity do?

The sebastian/complexity is a highly-effective PHP library designed for the critical task of computing the complexity of PHP code units. Its role is to carry out cyclic complexity analysis which aids in determining the complexity of the code structure. The main goal of such analysis is to make your codebase more maintainable and readable by identifying parts of the code that are overly complex.

How do you use sebastian/complexity?

To utilize the sebastian/complexity in your PHP project, you simply need to add it as a dependency using Composer. In a typical case, you run the following command in your terminal:

composer require sebastian/complexity

If the library is only needed during development, for example, to run your project's test suite, then you can add it as a development-time dependency by running:

composer require --dev sebastian/complexity

After successful installation, you can use it in the PHP files of your project by including it in relevant files.

Where are the sebastian/complexity docs?

The official documentation for sebastian/complexity is not directly pointed out in the readme file itself. However, essential information on how to use it and what it does is outlined in the README file of the package's GitHub repository. For in-depth analysis and specifics, developers are recommended to delve into the source code, unit test files, and the GitHub issues or pull requests of the sebastian/complexity repository. This would typically give an extensive understanding of the library's classes and methods in practical use cases.