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

Polyfill Newrelic Laravel Package

ostrolucky/polyfill-newrelic

Composer polyfill that defines New Relic PHP agent newrelic_* functions when the New Relic extension isn’t installed. Helps apps run on PHP setups without the extension while keeping calls to the agent API compatible.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Expansion: Enables New Relic monitoring in PHP applications where the native New Relic PHP extension is unavailable (e.g., Docker containers, CI/CD pipelines, or environments with restricted extensions).
  • Roadmap Alignment: Accelerates adoption of New Relic instrumentation for PHP projects without requiring infrastructure changes (e.g., shared hosting, legacy systems).
  • Build vs. Buy: Avoids reinventing a polyfill for New Relic compatibility, reducing dev time and maintenance overhead.
  • Use Cases:
    • CI/CD Monitoring: Add performance insights to build pipelines (e.g., GitHub Actions, GitLab CI) where native extensions are unsupported.
    • Multi-Environment Consistency: Standardize New Relic instrumentation across dev/staging/prod, even if some environments lack the PHP extension.
    • Legacy System Modernization: Gradually introduce observability to older PHP apps without full refactoring.

When to Consider This Package

  • Adopt if:
    • Your PHP app uses New Relic but the native extension is unavailable in critical environments (e.g., Docker, CI/CD, or shared hosting).
    • You prioritize low-risk, minimal-effort observability over custom solutions.
    • Your team lacks PHP extension installation privileges (e.g., shared servers, PaaS constraints).
  • Look elsewhere if:
    • The native New Relic PHP extension is already supported in all target environments (no need for a polyfill).
    • You require advanced New Relic features (e.g., custom instrumentation, distributed tracing) that the polyfill doesn’t support.
    • Your project uses a non-PHP stack where this polyfill is irrelevant.
    • You need enterprise-grade SLAs (this package has minimal adoption; evaluate support risks).

How to Pitch It (Stakeholders)

For Executives: "This polyfill lets us enable New Relic monitoring in PHP environments where the native extension isn’t available—like our CI/CD pipelines or shared hosting—without rewriting instrumentation. It’s a lightweight, MIT-licensed solution that reduces technical debt and aligns with our observability roadmap. Minimal risk, immediate value for edge cases."

For Engineering: *"The ostrolucky/polyfill-newrelic package bridges gaps where the New Relic PHP extension fails (e.g., Docker, CI). It’s a drop-in replacement for core monitoring, but note:

  • Pros: No extension install needed; works in restricted environments.
  • Cons: Limited to basic APM features (no custom instrumentation). Best for quick wins—pair with native extension where possible. Recommend testing in staging first to validate compatibility with our current New Relic setup."*
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor