Download the PHP package fullstack/stripe-product-manager without Composer
On this page you can find all versions of the php package fullstack/stripe-product-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fullstack/stripe-product-manager
More information about fullstack/stripe-product-manager
Files in fullstack/stripe-product-manager
Package stripe-product-manager
Short Description A library for managing Stripe products and prices
License MIT
Informations about the package stripe-product-manager
Stripe Product Manager
A comprehensive Laravel package for managing Stripe products, prices, customers, invoices, and transactions with Filament admin integration.
Installation
You can install the package via composer:
Note: This package requires the Spatie Laravel Permission package. If you haven't installed it yet, you'll need to:
Publishing Assets
The package provides several publishing groups for different types of assets:
Publish Everything
Publish Specific Assets
Configuration only:
Migrations only:
Seeders only:
Configuration
After publishing the configuration file, you can configure the package in config/stripe-product-manager.php:
Environment Variables
Add these to your .env file:
Database Setup
Run the migrations to create the necessary database tables:
Permissions Setup
After running migrations, seed the permissions and roles:
This will create the following roles and permissions:
Roles
- stripe-admin - Full access to all Stripe functionality
- stripe-manager - Can manage products, prices, customers, invoices, and basic operations
- stripe-viewer - Read-only access to view Stripe data
Guards
The package supports three authentication guards:
- web - Standard web authentication
- tenant-admin - Tenant-specific admin authentication
- super-admin - Super admin authentication
Each guard has its own set of roles and permissions, allowing for multi-tenant and hierarchical access control.
Permissions
The package creates granular permissions for each Stripe entity:
stripe.products.*- Product management permissionsstripe.prices.*- Price management permissionsstripe.customers.*- Customer management permissionsstripe.invoices.*- Invoice management permissionsstripe.transactions.*- Transaction management permissionsstripe.coupons.*- Coupon management permissionsstripe.discounts.*- Discount management permissionsstripe.promotion_codes.*- Promotion code management permissionsstripe.tax_codes.*- Tax code management permissionsstripe.tax_rates.*- Tax rate management permissionsstripe.admin.*- Administrative permissions
Using Permissions in Your User Model
Add the HasStripePermissions trait to your User model:
Then you can use the permission methods:
Using Middleware
The package provides middleware for guard-based authentication:
Or in your controllers:
Usage
Models
The package provides several Eloquent models for Stripe entities:
StripeProduct- Stripe productsStripePrice- Product pricingStripeCustomer- Customer dataStripeInvoice- Invoice informationStripeTransaction- Transaction dataStripeCoupon- Coupon managementStripeDiscount- Discount trackingStripePromotionCode- Promotion codesStripeTaxCode- Tax code definitionsStripeTaxRate- Tax rate information
Filament Integration
The package includes Filament resources for all Stripe entities. These will be automatically registered if Filament is installed and the STRIPE_FILAMENT_ENABLED option is set to true.
Console Commands
The package will include console commands for syncing data with Stripe (to be implemented):
Features
- ✅ Complete Stripe entity management
- ✅ Filament admin panel integration
- ✅ Database synchronization
- ✅ Webhook handling
- ✅ Tax management
- ✅ Coupon and promotion code support
- ✅ Invoice and transaction tracking
- ✅ Customer management
- ✅ Configurable database prefixes
- ✅ Comprehensive logging
- ✅ Role-based access control with Spatie permissions
- ✅ Granular permissions for each Stripe entity
- ✅ Pre-configured roles (Admin, Manager, Viewer)
- ✅ Permission trait for easy integration
- ✅ Multi-guard support (web, tenant-admin, super-admin)
- ✅ Guard-specific permission methods
- ✅ Middleware for guard authentication
Support
For support, please contact [email protected]
License
The MIT License (MIT). Please see License File for more information.
All versions of stripe-product-manager with dependencies
laravel/framework Version ^11.0|^12.0
laravel/cashier Version ^15.0
filament/filament Version ^3.3
spatie/laravel-permission Version ^6.0
flowframe/laravel-trend Version ^0.4