14 مستودعات
Tools and interfaces for analyzing the structure and metadata of PHP source code.
Distinct from PHP Standard Interface Implementations: No candidate covers general PHP structural analysis; candidates focus on generators, linters, or PSR standards.
Explore 14 awesome GitHub repositories matching programming languages & runtimes · PHP Code Analysis. Refine with filters or upvote what's useful.
PHP-CS-Fixer is a static analysis tool and code style linter designed to validate PHP code against predefined standards. It functions as a coding standard fixer that automatically detects and corrects style violations to ensure consistent formatting across a codebase. The project serves as a syntax modernizer, providing automated tools to update legacy PHP syntax to align with newer language versions. It also allows for the creation of custom style rules when built-in standards do not meet specific requirements. The tool covers broad capability areas including automated linting workflows and
Analyzes PHP source code without execution to identify and fix syntax and styling issues.
ReflectionCommon is a PHP reflection interface library and code analysis abstraction. It serves as a foundation for static analysis by providing a shared specification for representing classes, methods, and properties during programmatic code inspection. The project standardizes the reflection API to decouple analysis tools from specific PHP reflection implementations. This ensures that different analysis implementations can work interchangeably through a consistent layer of interfaces. The library covers the domain of PHP code analysis and static analysis tooling, establishing a common way
Provides a standardized way to analyze PHP source code structures to ensure consistent results across different tools.
php-code-coverage is a PHP library and analysis tool designed to track runtime execution and determine which parts of a codebase are exercised by automated tests. It monitors executed lines and branches during a test run to identify gaps in test coverage and evaluate the effectiveness of a test suite. The tool functions as an execution tracker and report generator that transforms raw PHP execution data into human-readable formats. It serializes collected metrics for storage and utilizes a processing system to calculate the total percentage of code covered. Its capability surface covers the e
Analyzes PHP runtime execution and calculates coverage metrics for source code analysis.
This project is a PHP docblock annotation parser and reflection metadata tool designed to extract structured metadata from doc-comments and convert them into class instances. It functions as a system for retrieving and managing custom metadata attached to classes, methods, and properties. The library includes a metadata caching system to store parsed results, which reduces the performance overhead associated with repeated reflection calls and string parsing. It also serves as a static analysis utility for validating source code structure and enforcing coding standards through automated docblo
Analyzes the structure and metadata of PHP source code to validate structural consistency.
Larastan هي أداة تحليل ثابت للغة PHP وامتداد متخصص لـ PHPStan. تعمل كمحلل للكود مصمم لاكتشاف الأخطاء والمشاكل المعمارية داخل تطبيقات Laravel من خلال تحليل الكود المصدري دون تنفيذه. يوفر المشروع مجموعات قواعد خاصة بإطار العمل واستنتاجاً متخصصاً للأنواع للتعامل مع الأنماط والمنطق الفريد المستخدم في نظام Laravel البيئي. وهذا يسمح باكتشاف أخطاء وفحص أنواع أكثر دقة من أدوات التحليل العامة. تتضمن الأداة أنظمة لإدارة ديون الكود القديم من خلال تتبع خط الأساس للأخطاء (error baseline) وقمع الأخطاء القائم على التعبيرات النمطية (regex). تمكن هذه القدرات من تحديد الانحدارات الجديدة مع تجاهل الانتهاكات الموجودة مسبقاً.
Performs structural analysis of PHP source code to identify bugs and quality improvements.
Larastan is a static analysis extension and type inference engine for PHP designed to detect bugs and type errors in Laravel applications. It extends PHPStan to resolve framework-specific patterns and magic methods, providing a rule-based scanning engine to audit code quality without executing the application. The tool specializes in Eloquent analysis, verifying that model properties, casts, and relationships align with database schemas and migrations. It tracks types across Eloquent collections, custom builders, and model factories to ensure type safety during database operations and iterati
Scans PHP source code to identify inefficient database queries, unused views, and architectural violations.
php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that reads tokens one by one, preventing the need to load entire source files into memory. The project provides memory-efficient parsing by wrapping the native PHP tokenizer extension. This allows for the sequential processing of source code tokens to analyze structural components and syntax. The tool is designed for static code analysis and the development of compiler tooling. It supports linear token processing and sequential traversal to examine language constructs and project
Analyzes the structure and syntax of PHP source code token by token without loading entire files.
Phan هو محلل ثابت ومدقق أنواع لـ PHP يحدد الأخطاء وعدم توافق الأنواع دون تنفيذ الكود. يعمل كبوابة جودة لخطوط أنابيب التكامل المستمر وأداة للتحقق من سلامة الأنواع، وتحديداً فحص أنواع الاتحاد (union types)، والأنواع العامة (generics)، وأشكال المصفوفات. يتميز المشروع باستخدامه لخادم خلفي (daemon) وتنفيذ بروتوكول خادم اللغة (LSP)، والتي توفر تشخيصات وتنقلاً في الوقت الفعلي داخل المحررات. كما يتميز بنظام قمع قائم على خط الأساس يسمح للمطورين بتسجيل الأخطاء الموجودة في ملف لقطة للتركيز حصرياً على الانحدارات الجديدة. يغطي محرك التحليل مجموعة واسعة من القدرات بما في ذلك اكتشاف الكود الميت، والتحقق من توافق اللغة عبر إصدارات PHP المختلفة، واستنتاج أنواع المتغيرات والقوالب. يدعم التحليل القابل للتوسيع من خلال نظام إضافات ويوفر إصلاحات كود آلية لمجموعة فرعية من المشكلات المكتشفة. يمكن للمستخدمين بدء العملية عن طريق إنشاء ملف تكوين بمستويات صرامة قابلة للاختيار للتحقق من قاعدة الكود الخاصة بهم تدريجياً.
Identifying unused variables, unreachable code blocks, and redundant conditions to clean up PHP codebases.
PhpInsights هي أداة تحليل ثابت ومحلل جودة كود لـ PHP. تقيم الكود المصدري لتحديد الأخطاء، وانتهاكات الأسلوب، والديون التقنية دون تنفيذ التطبيق. تعمل الأداة كأداة لمقاييس التعقيد، حيث تحسب التعقيد المعماري والتعقيد الدوري (cyclomatic complexity) لتحديد المنطق المعقد بشكل مفرط. تقيس صحة البرمجيات الإجمالية وقابليتها للصيانة من خلال مقارنة الكود بمعايير الصناعة. يدير النظام الديون التقنية من خلال التحقق القائم على القواعد والتسجيل القائم على المقاييس. يستخدم محرك تحليل ثابت لتحليل الكود المصدري، وتقديم النتائج عبر التقارير القائمة على وحدة التحكم وملف تكوين خاص بالمشروع.
Analyzes PHP source code for style and complexity issues to identify technical debt without running the application.
هذه المكتبة عبارة عن أداة لتحليل كود مصدر PHP والتحليل الساكن تقوم بتحويل كود PHP الخام إلى رموز منفصلة وتمثيلات XML منظمة. تعمل كمسلسل (serializer) يحول تدفقات الرموز إلى تنسيق قابل للقراءة آلياً للتحليل البرمجي ومعالجة شجرة المصدر. يستخدم المشروع تسلسل XML القائم على التدفق وكتابة المخزن المؤقت القائم على الأجزاء للحفاظ على استهلاك منخفض للذاكرة عند معالجة الملفات الكبيرة. يسمح بتكوين مساحة اسم XML مخصصة لضمان توافق المخطط وتجنب تصادم الأسماء أثناء عملية التحويل. تغطي مجموعة الأدوات التحليل المعجمي وتحويل الكود المصدري إلى XML منظم لدعم سير عمل تحليل الكود الساكن. تعالج تدفقات الرموز في تمريرة واحدة لتنظيم قوائم المصدر المسطحة في هيكل XML هرمي.
Converts PHP source code into structured XML to enable programmatic analysis and manipulation of the code tree.
Vulture is a static analysis tool and linter designed to find unused variables, functions, and classes in Python source code. It operates as a dead code detector and unused code finder that scans source files to identify unreachable expressions and imports without executing the code. The tool employs a confidence-based heuristic scoring system to assign probability values to detections, helping to distinguish truly unused symbols from potential false positives. It further assists in pruning dead logic by sorting detected unused classes and functions by line count to prioritize the removal of
Identifies unused functions, classes, and variables in Python source code to reduce technical debt.
phpDocumentor is a PHP API documentation generator and source code analyzer that transforms PHP files and DocBlocks into structured HTML API references. It functions as a static site generator and an automatic documentation tool designed to synchronize technical documentation with code changes. The project distinguishes itself by acting as a UML diagram generator, producing class and architectural graphs via PlantUML based on source analysis. It also supports technical manual authoring, rendering hand-written guides in Markdown and ReStructuredText alongside the automatically generated API re
Parses PHP files to create structured metadata, abstract syntax trees, and visual relationship diagrams of the codebase.
Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and checks during various Git events. It serves as a workflow automation tool that ensures code quality and project standards are met before changes are committed or pushed to a remote repository. The system distinguishes itself through a comprehensive YAML-based configuration that allows for detailed hook behavior control, including file execution filtering, conditional skipping, and the management of hook dependencies. It provides specialized roles such as a commit message vali
Analyzes modified PHP files for errors during the pre-commit phase to prevent broken code.
This library provides a structured framework for managing runtime failures and debugging within PHP applications. It functions by intercepting native language errors, warnings, and system signals, converting them into catchable, object-oriented exceptions to ensure consistent control flow throughout the application lifecycle. The project distinguishes itself by normalizing raw execution backtraces and providing a transformation layer that standardizes how system failures are reported. It includes specialized tools for monitoring the class loading process, ensuring that dependency resolution i
Detects deprecated methods and invalid code structures to ensure long-term stability and adherence to modern standards.