🇹🇷 TR 🇺🇸 EN

PHP Code Analyzer

Professional PHP Code Analysis Tool

PHP 8.0+ MIT License v2.0.0 Production Ready

Advanced tool that detects unused code (dead code) in your PHP projects, analyzes code quality, and provides detailed reports.

✨ Features

Dead Code Detection

Identifies unused functions, classes, and methods with advanced heuristics.

AST-Based Parsing

Complete and accurate code analysis using PHP's own tokenizer.

Enterprise Reporting

Detailed professional reports in HTML, JSON, and Console formats.

Modern Web Interface

User-friendly, responsive and interactive web interface.

REST API

JSON-based REST API support for integration.

CLI Support

Command-line interface that can be run from terminal.

100+
File Type Support
10MB+
File Size Support
3
Output Formats
0
License Fee

🎯 Usage Examples

Web Interface

https://ai.zefre.net/php-code-analyzer/analyzer-web.php

Command Line (CLI)

# Basic usage php AdvancedPHPCodeAnalyzer.php --project=/path/to/project # With custom directories php AdvancedPHPCodeAnalyzer.php --project=/var/www/myproject --target=includes,lib,helpers # Generate HTML report php AdvancedPHPCodeAnalyzer.php --project=/path/to/project --format=html

REST API

curl -X POST https://ai.zefre.net/php-code-analyzer/analyzer.php \ -H "Content-Type: application/json" \ -d '{ "project_root": "/var/www/myproject", "target_dirs": ["includes", "lib", "helpers"], "output_format": "json" }'

📦 Installation Steps

1

Download Files

Clone from GitHub or download ZIP file.

2

Upload to Server

Copy files to your web server directory.

3

Setup Check

Run system check by opening setup.php file.

4

Start Analyzer

Start your analysis from web interface or CLI.

Get Started Now