Skip to content

Question about including 3rd-party dependencies (e.g., stripe/stripe-php) in a custom Stripe driver #364

Description

@edrisranjbar

Hi, I'm planning to implement a Stripe driver for this package (since it's listed as "will be added soon" and help is requested via PRs).
To properly integrate Stripe, I would need to use their official PHP SDK: stripe/stripe-php.
Before I start working on the driver, I want to ask:
Are contributors allowed to add 3rd-party package dependencies (via composer.json) when implementing a new driver?
If yes, should the dependency be required globally for the whole package, or would you prefer a more decoupled approach (e.g., using interfaces and letting the end-user install the SDK themselves)?

I understand that adding a dependency increases the package's footprint, but for a driver like Stripe, the official SDK is the most reliable way to handle API calls, webhooks, and checkout sessions.

Thank you for clarifying the policy. I'm happy to follow any guidelines you set.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions