Sentinel AI

GitHub

Welcome to Sentinel AI

Cross-platform PHP Code Quality Analysis Tool

Automated PHP code analysis tool with intelligent reporting and categorized auto-fix capabilities

🎯
Categorized Auto-Fix System

Risk-based auto-fixing with LOW/MEDIUM/HIGH categories and interactive mode for smart recommendations

🔍
Multi-Tool Integration

PHP_CodeSniffer, PHPStan, PhpMetrics, Custom Duplicate Detection with framework-aware analysis

Intelligent Caching

Incremental analysis with file-based caching using SHA256 hashes for faster repeated runs

🏗️
Framework Support

Automatic detection for Laravel, Symfony, CodeIgniter, CakePHP, Laminas, and Yii frameworks

📊
Beautiful Reports

HTML reports with metrics, issue breakdowns, JSON output for CI/CD, and console formatting

🚀
Cross-Platform

Native binaries for Linux, macOS, Windows with universal PHAR support and zero configuration

🚀 Quick Start (5 minutes)

Step 1: Install Sentinel AI

# Automated installation (recommended)
curl -sSL https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/install.sh | bash

# Or manual installation if automated fails
cd /tmp
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel-macos-x86_64 -o sentinel-macos-x86_64
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel.phar -o sentinel.phar
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/install.sh -o install.sh
chmod +x install.sh && ./install.sh

Step 2: Run your first analysis

cd /path/to/your/php/project
sentinel analyze

Step 1: Install Sentinel AI

# Automated installation (recommended)
curl -sSL https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/install.sh | bash

# Or manual installation if automated fails
cd /tmp
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel-linux-x86_64 -o sentinel-linux-x86_64
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel.phar -o sentinel.phar
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/install.sh -o install.sh
chmod +x install.sh && ./install.sh

Step 2: Run your first analysis

cd /path/to/your/php/project
sentinel analyze

Step 1: Install Sentinel AI

# PowerShell installation (run as Administrator)
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/install.ps1" -UseBasicParsing).Content

# Or manual installation
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel-windows-x86_64.bat" -OutFile "sentinel.bat"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel.phar" -OutFile "sentinel.phar"
.\sentinel.bat --version

Step 2: Run your first analysis

cd C:\path\to\your\php\project
sentinel analyze

Step 1: Download and use Sentinel AI directly

# Download PHAR file
curl -L https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel.phar -o sentinel.phar
chmod +x sentinel.phar

# Or on Windows
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/abdulbaquee/sentinel-ai-releases/main/releases/v1.0.6/sentinel.phar" -OutFile "sentinel.phar"

Step 2: Run your first analysis

cd /path/to/your/php/project
./sentinel.phar analyze

# Or on Windows
php sentinel.phar analyze

Note: If automated installation fails, use the manual installation method or download the PHAR file directly. View detailed installation guide