Download the PHP package iamalamin/easy-stripe without Composer
On this page you can find all versions of the php package iamalamin/easy-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iamalamin/easy-stripe
More information about iamalamin/easy-stripe
Files in iamalamin/easy-stripe
Package easy-stripe
Short Description No-code Stripe payment integration for Laravel
License MIT
Informations about the package easy-stripe
Stripe Integration Package for Laravel
A no-code Stripe payment integration package for Laravel that provides a complete payment solution with minimal setup.
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
- PHP ^8.1
- Laravel ^10.0|^11.0|^12.0
- Stripe PHP SDK (automatically suggested)
Installation
1. Install via Composer
2. Run Installation Command
3. Run Migrate Command
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
1. Environment Variables
Add your Stripe keys to your .env file:
2. Configuration File
The package publishes a configuration file at config/easy-stripe.php:
Usage
Available Routes
After installation, the following routes will be available:
Basic Payment Flow
- Payment Form: Visit
/stripeto see the payment form - Process Payment: Form submits to
/stripe/payment - Success/Cancel: User redirected to success or cancel page
- View Payments: Admin can view all payments at
/stripe/payments
Customization
Views
All views are published to resources/views/easy-stripe/:
Controller
The StripePaymentController is copied to app/Http/Controllers/ and can be customized:
Model
The StripePayment model is copied to app/Models/ for payment tracking:
Database Schema
The package creates a stripe_payments table with the following structure:
Advanced Usage
Custom Payment Amounts
You can pass custom amounts via URL parameters:
Webhook Handling
To handle Stripe webhooks, add the webhook endpoint to your Stripe dashboard:
Custom Styling
The package includes Bootstrap 5 styling by default. You can customize the CSS in the layout file:
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
You can test payments using Stripe's test card numbers:
Troubleshooting
Common Issues
- Views not found: Ensure views are published to
resources/views/easy-stripe/ - Routes not working: Check that routes are added to
routes/web.php - Stripe errors: Verify your API keys in
.envfile - Database errors: Run
php artisan migrateto ensure tables exist
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
Support
For support, please open an issue on the GitHub repository or contact [email protected]
Changelog
Version 1.0.0
- Initial release
- Basic payment processing
- Bootstrap UI
- Database tracking
- Laravel 10, 11, 12 support
All versions of easy-stripe with dependencies
laravel/framework Version ^10.0|^11.0|^12.0
stripe/stripe-php Version ^13.0 || ^18.0