permafrost-dev/php-code-search
PHP library for searching code across projects and repositories. Provides fast, programmable text/pattern queries with useful match context and filtering, making it easier to locate symbols, usages, or snippets during audits, refactors, and CI tooling.
Auth::attempt() calls").Log::debug() calls for PII").Adopt if:
grep/ripgrep or IDE search (e.g., PHPStorm) for PHP/Laravel code navigation.DB::table() calls").Look elsewhere if:
For Executives: "This open-source tool lets our PHP/Laravel engineers search code 10x faster than manual methods, cutting debugging time and reducing bus-factor risks. For example, it can instantly find every place a critical method is called—saving hours per week. It’s lightweight, self-hosted, and MIT-licensed, so we avoid vendor lock-in. Early adopters like [hypothetical team] use it to audit third-party dependencies and accelerate onboarding. The cost? Zero—just developer time to integrate."
For Engineering:
*"Need to find all usages of Auth::login()? Or audit where a variable is modified across 20+ files? This CLI tool indexes your PHP/Laravel codebase once, then answers these questions in milliseconds. It’s like grep on steroids—with Laravel-specific smarts (e.g., handling facades, closures). We can plug it into:
@deprecated tags.search:usage App\Models\User to explore the codebase.’file_get_contents() calls for path traversal risks.’
It’s MIT-licensed, actively maintained, and avoids bloating our stack with heavyweight tools."*How can I help you explore Laravel packages today?