{"id":95184,"library":"sebastian-complexity","title":"Sebastian Complexity","description":"Library for calculating the complexity of PHP code units","status":"active","version":"6.0.0","language":"php","source_language":null,"source_url":"https://github.com/sebastianbergmann/complexity","tags":["complexity","code-analysis","sebastian","phpunit"],"install":[{"cmd":"composer require sebastian/complexity","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Complexity","correct":"use SebastianBergmann\\Complexity\\Complexity;"}],"quickstart":{"code":"use SebastianBergmann\\Complexity\\Complexity;\n\n$complexity = new Complexity();\n$result = $complexity->calculate('path/to/file.php');","lang":"php","description":"Calculate code complexity"},"warnings":[{"fix":"Upgrade PHP to 8.0+","message":"Requires PHP 8.0 or higher","severity":"breaking","affected_versions":">=6.0.0"}],"env_vars":null,"search_vec":"'analysi':15 'calcul':5 'code':10,14 'code-analysi':13 'complex':2,7,12 'librari':3 'php':9 'phpunit':17 'sebastian':1,16 'unit':11","created_at":"2026-06-19T10:22:37.913773+00:00","updated_at":"2026-06-19T10:22:37.913773+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/sebastianbergmann/complexity","github":"https://github.com/sebastianbergmann/complexity","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}