Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Complexity Laravel Package

sebastian/complexity

Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is a standalone static analysis tool for PHP code complexity, but its PHP version requirement (>=8.4) is incompatible with all current stable PHP versions (latest is 8.3). This makes it unusable in any existing Laravel project, which typically supports up to PHP 8.2/8.3. The dependency on nikic/php-parser:^5.0 is reasonable for modern PHP, but the PHP version constraint overrides this.

Integration feasibility: Not feasible. Composer installation fails due to PHP version mismatch. Laravel 10 requires PHP 8.2+, but sebastian/complexity demands PHP 8.4 (which doesn't exist as of 2023). The 0 dependents on Packagist and future-dated release (2026-02-06) suggest potential data inaccuracies or abandonment.

Technical risk: Critical. The PHP version requirement is physically impossible to satisfy in current environments. High risk of wasted effort if attempted. The package may be a placeholder or misconfigured, given the future release date and lack of dependents.

Key questions: Why does this package require PHP 8.4 when it's unreleased? Is the composer.json misconfigured (e.g., typo for >=8.1)? Is this project actively maintained given the 0 dependents and future-dated release?

Integration Approach

Stack fit: Poor. Laravel projects (even latest versions) cannot support PHP 8.4. The package's PHP constraint creates an immediate incompatibility with the entire Laravel ecosystem.

Migration path: None. No viable path exists without waiting for PHP 8.4 release (expected late 2024), then upgrading Laravel to support it (which may require Laravel 11+), and verifying compatibility with nikic/php-parser:^5.0. This is speculative and high-risk.

Compatibility: Fully incompatible with all current PHP versions (7.4–8.3). Even if PHP 8.4 releases, Laravel's compatibility timeline is uncertain.

Sequencing: N/A. Cannot proceed until PHP 8.4 is released and Laravel supports it, which is not foreseeable. Prioritize alternatives like phpcpd, phploc, or phpmetrics for complexity analysis.

Operational Impact

Maintenance: High. If PHP 8.4 releases, the package may require immediate updates to align with Laravel's PHP support. The 0 dependents and future-dated release suggest poor maintenance hygiene.

Support: None for current environments. No community or vendor support exists for a package requiring an unreleased PHP version. Bug fixes would require waiting for PHP 8.4 and potential package updates.

Scaling: Irrelevant. The package cannot be deployed in any production or staging environment due to PHP constraints.

Failure modes: Installation fails instantly with Your requirements could not be resolved to an installable set of packages. No runtime failure modes since it cannot be installed.

Ramp-up: Impossible.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4