Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Code Search Laravel Package

permafrost-dev/php-code-search

Search PHP projects by symbol or text to quickly find classes, methods, functions, and constants across your codebase. Fast, lightweight code search for local repositories, useful for audits, refactors, and navigating large Laravel or PHP applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Productivity Tools: Accelerates debugging, refactoring, and code navigation by enabling fast, accurate searches across PHP/Laravel codebases (e.g., "Find all usages of this method" or "Locate where a variable is modified").
  • Technical Debt Reduction: Justifies investment in codebase maintainability by reducing manual grep/IDE dependency (e.g., for legacy systems or monolithic Laravel apps).
  • Build vs. Buy: Avoids reinventing a custom search solution (e.g., Elasticsearch integration) when open-source meets needs.
  • Laravel-Specific Use Cases:
    • Searching across service providers, middleware, or event listeners.
    • Auditing third-party package integrations (e.g., "Find all Auth::attempt() calls").
    • Compliance/audit tools (e.g., "Locate all Log::debug() calls for PII").
  • Roadmap Enabler: Supports future features like:
    • Codebase analytics dashboards (e.g., "Top 10 most-called methods").
    • IDE plugin integration (e.g., VS Code/Laravel IDE Helper).

When to Consider This Package

Adopt if:

  • Your team relies on manual grep/ripgrep or IDE search (e.g., PHPStorm) for PHP/Laravel code navigation.
  • You need programmatic access to code search (e.g., for CI/CD scripts, automated refactoring, or custom tooling).
  • Your codebase is large/complex (e.g., >50K LOC) and lacks a dedicated search tool.
  • You’re auditing legacy code or third-party dependencies (e.g., "Find all DB::table() calls").
  • You want lightweight, self-hosted search (no cloud dependencies).

Look elsewhere if:

  • You need full-text search (e.g., searching comments/strings) → Consider Elasticsearch or Meilisearch.
  • Your stack is multi-language (e.g., PHP + JS + Go) → Use a polyglot tool like Sourcegraph.
  • You require real-time indexing → Evaluate Laravel Scout (for Eloquent) or GitHub Codespaces.
  • Your team already uses enterprise tools (e.g., JetBrains Space, GitLab Ultimate) with built-in search.
  • You need semantic understanding (e.g., "Find methods that violate Single Responsibility") → Consider static analysis tools (e.g., PHPStan, Psalm).

How to Pitch It (Stakeholders)

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:

  • CI/CD: Auto-generate changelogs by searching for @deprecated tags.
  • Onboarding: ‘Run search:usage App\Models\User to explore the codebase.’
  • Security: ‘Find all file_get_contents() calls for path traversal risks.’ It’s MIT-licensed, actively maintained, and avoids bloating our stack with heavyweight tools."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony