PHPackages                             iamalamin/easy-stripe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. iamalamin/easy-stripe

ActiveLibrary[Payment Processing](/categories/payments)

iamalamin/easy-stripe
=====================

No-code Stripe payment integration for Laravel

1.0.0(7mo ago)08MITBladePHP ^8.1

Since Oct 8Pushed 7mo agoCompare

[ Source](https://github.com/Alamin30/easy-stripe)[ Packagist](https://packagist.org/packages/iamalamin/easy-stripe)[ RSS](/packages/iamalamin-easy-stripe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Stripe Integration Package for Laravel
======================================

[](#stripe-integration-package-for-laravel)

A no-code Stripe payment integration package for Laravel that provides a complete payment solution with minimal setup.

Features
--------

[](#features)

- 🚀 **No-code setup** - Install and configure with simple Artisan commands
- 💳 **Complete payment flow** - Payment forms, processing, success/cancel pages
- 📱 **Responsive UI** - Beautiful Bootstrap-based payment forms
- 🔒 **Secure** - Built-in CSRF protection and secure payment handling
- 📊 **Payment tracking** - Database storage for all payment records
- 🎨 **Customizable** - Easily customize views and styling
- ⚡ **Laravel 10, 11, 12 support** - Compatible with latest Laravel versions

Requirements
------------

[](#requirements)

- PHP ^8.1
- Laravel ^10.0|^11.0|^12.0
- Stripe PHP SDK (automatically suggested)

Installation
------------

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require alamin/easy-stripe
```

### 2. Run Installation Command

[](#2-run-installation-command)

```
php artisan easy-stripe:install
```

### 3. Run Migrate Command

[](#3-run-migrate-command)

```
php artisan migrate
```

This command will:

- Publish configuration files
- Publish and run database migrations
- Publish views to `resources/views/easy-stripe/`
- Copy controller and model files to your app
- Add routes to `routes/web.php`

Configuration
-------------

[](#configuration)

### 1. Environment Variables

[](#1-environment-variables)

Add your Stripe keys to your `.env` file:

```
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
STRIPE_SECRET_KEY=sk_test_your_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
```

### 2. Configuration File

[](#2-configuration-file)

The package publishes a configuration file at `config/easy-stripe.php`:

```
return [
    'stripe' => [
        'publishable_key' => env('STRIPE_PUBLISHABLE_KEY'),
        'secret_key' => env('STRIPE_SECRET_KEY'),
        'webhook_secret' => env('STRIPE_WEBHOOK_SECRET'),
    ],
    'currency' => env('STRIPE_CURRENCY', 'usd'),
    'routes' => [
        'prefix' => 'stripe',
        'middleware' => ['web'],
    ],
];
```

Usage
-----

[](#usage)

### Available Routes

[](#available-routes)

After installation, the following routes will be available:

```
GET  /stripe                   - Payment form
POST /stripe/payment           - Process payment
GET  /stripe/success           - Payment success page
GET  /stripe/cancel            - Payment cancelled page
GET  /stripe/payments          - List all payments

```

### Basic Payment Flow

[](#basic-payment-flow)

1. **Payment Form**: Visit `/stripe` to see the payment form
2. **Process Payment**: Form submits to `/stripe/payment`
3. **Success/Cancel**: User redirected to success or cancel page
4. **View Payments**: Admin can view all payments at `/stripe/payments`

### Customization

[](#customization)

#### Views

[](#views)

All views are published to `resources/views/easy-stripe/`:

```
resources/views/stripe-integration/
├── layouts/
│   └── app.blade.php           # Main layout
├── stripe-payment/
│   ├── index.blade.php         # Payment form
│   ├── success.blade.php       # Success page
│   ├── cancel.blade.php        # Cancel page
│   └── list.blade.php          # Payments list

```

#### Controller

[](#controller)

The `StripePaymentController` is copied to `app/Http/Controllers/` and can be customized:

```
// app/Http/Controllers/StripePaymentController.php
class StripePaymentController extends Controller
{
    public function index()
    {
        return view('easy-stripe.stripe-payment.index');
    }

    public function processPayment(Request $request)
    {
        // Payment processing logic
    }

    // ... other methods
}
```

#### Model

[](#model)

The `StripePayment` model is copied to `app/Models/` for payment tracking:

```
// app/Models/StripePayment.php
class StripePayment extends Model
{
    protected $fillable = [
        'stripe_payment_intent_id',
        'amount',
        'currency',
        'status',
        'customer_email',
        'customer_name',
        'metadata',
    ];
}
```

### Database Schema

[](#database-schema)

The package creates a `stripe_payments` table with the following structure:

```
Schema::create('stripe_payments', function (Blueprint $table) {
    $table->id();
    $table->string('stripe_payment_intent_id')->unique();
    $table->integer('amount'); // Amount in cents
    $table->string('currency', 3)->default('usd');
    $table->string('status');
    $table->string('customer_email')->nullable();
    $table->string('customer_name')->nullable();
    $table->json('metadata')->nullable();
    $table->timestamps();
});
```

Advanced Usage
--------------

[](#advanced-usage)

### Custom Payment Amounts

[](#custom-payment-amounts)

You can pass custom amounts via URL parameters:

```
/stripe?amount=2000&currency=usd&description=Custom Product

```

### Webhook Handling

[](#webhook-handling)

To handle Stripe webhooks, add the webhook endpoint to your Stripe dashboard:

```
https://yourdomain.com/stripe/webhook

```

### Custom Styling

[](#custom-styling)

The package includes Bootstrap 5 styling by default. You can customize the CSS in the layout file:

```
{{-- resources/views/easy-stripe/layouts/app.blade.php --}}

    .payment-card {
        background: white;
        border-radius: 15px;
        /* Your custom styles */
    }

```

Security
--------

[](#security)

- All forms include CSRF protection
- Stripe keys should be kept in environment variables
- Payment processing uses Stripe's secure API
- No sensitive card data is stored locally

Testing
-------

[](#testing)

You can test payments using Stripe's test card numbers:

```
Card Number: 4242424242424242
Expiry: Any future date
CVC: Any 3 digits

```

Troubleshooting
---------------

[](#troubleshooting)

### Common Issues

[](#common-issues)

1. **Views not found**: Ensure views are published to `resources/views/easy-stripe/`
2. **Routes not working**: Check that routes are added to `routes/web.php`
3. **Stripe errors**: Verify your API keys in `.env` file
4. **Database errors**: Run `php artisan migrate` to ensure tables exist

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

Support
-------

[](#support)

For support, please open an issue on the GitHub repository or contact

Changelog
---------

[](#changelog)

### Version 1.0.0

[](#version-100)

- Initial release
- Basic payment processing
- Bootstrap UI
- Database tracking
- Laravel 10, 11, 12 support

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance64

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a17613e6a93d2fe25b6d5f47e40bdaed7f955b69e9f8c93c54184002283103f0?d=identicon)[Alamin30](/maintainers/Alamin30)

---

Top Contributors

[![Alamin30](https://avatars.githubusercontent.com/u/44776043?v=4)](https://github.com/Alamin30 "Alamin30 (22 commits)")

### Embed Badge

![Health badge](/badges/iamalamin-easy-stripe/health.svg)

```
[![Health](https://phpackages.com/badges/iamalamin-easy-stripe/health.svg)](https://phpackages.com/packages/iamalamin-easy-stripe)
```

###  Alternatives

[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

322.8k](/packages/duncanmcclean-statamic-cargo)[wandesnet/mercadopago-laravel

PHP SDK for integration with Mercado Pago

252.4k](/packages/wandesnet-mercadopago-laravel)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
