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

Laravel Plugin Laravel Package

saloonphp/laravel-plugin

Laravel plugin for Saloon that brings tight framework integration: service container bindings, config publishing, artisan tooling, and convenient HTTP client setup for building and managing API connectors and requests cleanly within Laravel apps.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API-Centric Roadmap: Accelerates delivery of features requiring third-party API integrations (e.g., payment processing, SaaS connectors, or real-time data pipelines) by reducing boilerplate and standardizing patterns.
  • Technical Debt Reduction: Replaces ad-hoc HTTP clients (e.g., raw Guzzle instances) with a maintainable, contract-driven approach, aligning with Laravel’s ecosystem (e.g., service containers, events, and queues).
  • Build vs. Buy: Justifies not building custom API client libraries when Saloon’s abstractions (connectors, contracts, and middleware) meet 80% of needs, saving 3–6 months of dev time per major integration.
  • Use Cases:
    • B2B/B2C Integrations: Standardize interactions with payment gateways (Stripe), marketplaces (Amazon MWS), or internal microservices.
    • Legacy Modernization: Refactor monolithic API clients into modular, testable components with Saloon’s contract testing and mocking.
    • Developer Productivity: Reduce API client onboarding time by 30–50% via CLI scaffolding (saloon:connector, saloon:request) and IDE support (e.g., ide.json for autocompletion).
    • Observability: Leverage Laravel Telescope/Pulse integration to debug API failures without scattering logs across services.
    • Security: Handle sensitive data (e.g., OAuth tokens) via Saloon’s environment-aware configuration and middleware (e.g., Nightwatch for request/response sanitization).

When to Consider This Package

  • Adopt if:

    • Your Laravel app interacts with 5+ APIs where request/response patterns repeat (e.g., pagination, retries, auth headers).
    • You need contract-first development to enforce API specifications before implementation (e.g., OpenAPI/Swagger-like contracts in PHP).
    • Your team struggles with flaky API tests or lacks a standardized way to mock third-party responses.
    • You’re using Laravel 10–13 and want seamless integration with:
      • Service containers (dependency injection).
      • Queues (async API calls).
      • Events (e.g., ApiCallFailed events).
    • You require debugging tools like Telescope or Pulse to monitor API performance/errors.
    • Your APIs use OAuth 2.0, API keys, or custom auth flows that need centralized handling.
  • Look elsewhere if:

    • Your APIs are trivial (e.g., single-endpoint calls with no shared logic).
    • You’re not using Laravel (Saloon’s Laravel plugin adds minimal value outside its ecosystem).
    • Your team lacks PHP expertise to leverage Saloon’s contract-driven approach (prefer low-code tools like Postman or Zapier for non-dev integrations).
    • You need real-time WebSocket support (Saloon focuses on HTTP; consider Ray or Beyond Code for WebSockets).
    • Your APIs are internal-only with no third-party dependencies (custom solutions may suffice).

How to Pitch It (Stakeholders)

For Executives: "This package lets us build API integrations 4x faster while reducing bugs and tech debt. For example, integrating with a new payment gateway—normally a 2–3 week dev effort—could take 3–5 days with Saloon’s scaffolding and contract testing. It also future-proofs our codebase by standardizing how we handle auth, retries, and errors across all APIs, saving $X/year in maintenance costs. The Laravel plugin integrates seamlessly with our existing stack (Telescope for debugging, queues for async calls), and the MIT license means no vendor lock-in."

For Engineering Leaders: *"Saloon’s Laravel plugin gives us:

  • CLI tools to scaffold API clients in minutes (php artisan saloon:connector).
  • Contract testing to catch API spec violations early (e.g., wrong response formats).
  • Middleware support for retries, logging, and auth (e.g., OAuth, API keys).
  • Observability via Telescope/Pulse to debug production API failures.
  • Mocking for unit/integration tests without hitting real endpoints. We’d avoid reinventing the wheel for every new API client, and the active community (80+ stars, recent Laravel 13 support) ensures long-term viability."*

For Developers: *"No more writing the same auth/retries logic for every API client. Saloon’s connectors let you define requests as PHP classes with built-in validation, and the Laravel plugin adds:

  • Artisan commands to generate boilerplate (saloon:request, saloon:list).
  • IDE hints (via ide.json) for autocompletion.
  • Seamless Laravel integration (e.g., bind connectors to the container, use queues for async calls).
  • Debugging helpers like Telescope integration to inspect API responses. It’s like having a batteries-included Guzzle client with superpowers."*
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
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