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

Api Client Bundle Laravel Package

chaplean/api-client-bundle

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Granular API Logging Control: Enables selective logging for specific APIs (e.g., foo_api) rather than a blanket approach, reducing noise in logs and improving debugging precision. Supports compliance, auditing, or performance monitoring use cases where only certain APIs require logging.
  • Flexible Logging Configuration: Aligns with modular architecture by allowing per-API logging toggles, reducing overhead for teams managing multiple APIs. Useful for:
    • Roadmap: Phased rollouts (e.g., log only new APIs during testing).
    • Build vs. Buy: Avoids reinventing logging infrastructure; leverages existing Laravel/PHP ecosystems.
  • Deprecation Management: Phased removal of true in favor of ~ (wildcard) simplifies future maintenance and reduces technical debt for stakeholders.
  • Observability Investments: Supports broader observability initiatives by integrating logging with database/email systems, enabling alerts or archival for critical APIs.

When to Consider This Package

  • Adopt if:
    • Your Laravel/PHP application manages multiple APIs and needs fine-grained logging control (e.g., disable logging for high-volume APIs, enable for critical ones).
    • You require logging persistence (database/email) with selective activation (e.g., only for payment APIs during fraud investigations).
    • Your team prioritizes maintainability over custom solutions, given the package’s adherence to Laravel conventions and deprecation roadmap.
  • Look elsewhere if:
    • You need real-time log streaming (e.g., to SIEM tools) or structured logging formats (e.g., JSON); this package focuses on persistence, not ingestion.
    • Your APIs are homogeneous and don’t require per-API logging granularity (simpler boolean toggles suffice).
    • You’re using a non-Laravel PHP stack or need multi-language support (this is Laravel-specific).

How to Pitch It (Stakeholders)

For Executives: "This update lets us turn logging on/off per API—like a light switch for each service—without rewriting our observability stack. For example, we can log only our payment API during fraud reviews or disable logging for our high-traffic search API to cut database costs. It’s a low-code, high-impact way to reduce noise in our logs and align with compliance needs, all while leveraging our existing Laravel infrastructure. The deprecation of true in favor of ~ also future-proofs our setup, saving dev time later."

For Engineering: *"v1.3.0 adds selective API logging via enable_database_logging/enable_email_logging, now supporting:

  • Wildcard (~) for all APIs (replaces deprecated true).
  • Whitelists/blacklists (e.g., ['!foo_api'] to disable only foo_api).
  • Automatic naming via AbstractApi:getName() (snake_case class name by default).

Key benefits:

  • No breaking changes: Backward-compatible with existing configs (old true values auto-convert to ~).
  • Performance: Avoids logging for irrelevant APIs, reducing DB/email overhead.
  • Debugging: Pinpoint issues to specific APIs (e.g., ['payment_api'] for transaction logs).

Action items:

  1. Audit current logging configs—migrate true to ~ where used.
  2. Test selective logging for non-critical APIs (e.g., disable ['analytics_api'] in staging).
  3. Pair with Laravel’s existing logging channels (e.g., single or stack) for advanced routing."*
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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui