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

Stripe Bundle Laravel Package

driveop/stripe-bundle

View on GitHub
Deep Wiki
Context7

DriveOpStripeBundle

A simple Symfony bundle for Stripe Api.

Only SMS/WhatsApp!

Setup

Step 1: Download DriveOpStripeBundle using composer

Add Stripe Bundle in your composer.json:

{
    "require": {
        "driveop/stripe-bundle": "^1.0"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update "driveop/stripe-bundle"

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new DriveOp\StripeBundle\DriveOpStripeBundle()
    );
}

Step 3: Add configuration

# app/config/config.yml
driveop:
        stripe:
            stripe_private_key:    %stripe_private_key%

Usage

Using service

<?php
        $stripeClient = $this->get('stripe_client');
?>

##Example

###Create customer & subscription

<?php 
    $customer = $stripeClient->createCustomer($token, $email, $name, $phone);

    // Store customer information

    $subsciption = $stripeClient->createSubscription($customerId, $planId);

    // Store subscription information

?>
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.
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
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed