Download the PHP package devmohy/creem-laravel without Composer
On this page you can find all versions of the php package devmohy/creem-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devmohy/creem-laravel
More information about devmohy/creem-laravel
Files in devmohy/creem-laravel
Package creem-laravel
Short Description Official Laravel package for CREEM
License MIT
Informations about the package creem-laravel
CREEM Laravel Package
Official Laravel package for CREEM, providing a clean, Laravel-native way to integrate payments, subscriptions, and webhooks.
Features
- Facade Support: Simple API calls via
Creem::createCheckout()and more. - Webhook Integration: Middleware-protected webhook routing with automatic event dispatching.
- Artisan Commands: Easily manage your CREEM configuration and sync products.
- SaaS Ready: Designed for subscriptions and one-time payments.
- CI/CD Ready: Pre-configured GitHub Actions for automated testing.
- Code Quality: Built-in support for Laravel Pint to maintain clean code.
Installation
You can install the package via composer:
You should publish the config file with:
This is the contents of the published config file:
Usage
Create a Checkout Session
Get Product Details
Search Products
You can also search for products with detailed query parameters:
Customer Management
Subscription Management
Licenses
Manage software licenses directly from your application:
Transactions
Discounts & Coupons
Webhooks
To handle webhooks, you can use the built-in controller or define your own route using the provided middleware.
Built-in Route (Optional)
Add this to your routes/api.php:
Events
The package dispatches events when a webhook is received:
Creem\CreemLaravel\Events\WebhookReceivedCreem\CreemLaravel\Events\CheckoutSucceededCreem\CreemLaravel\Events\SubscriptionUpdated
You can listen to these events in your EventServiceProvider:
Example Listener
Here is how you might implement a listener to handle a successful checkout:
Commands
Set Webhook Secret
Generates or sets the CREEM_WEBHOOK_SECRET in your .env file.
Sync/List Products
Fetches and displays all products from your CREEM dashboard.
Demo Application
A fully functional demo application is included in the demo/ directory, showcasing:
- Pricing Page: Displays products dynamically fetched from CREEM API
- Checkout Flow: Complete payment integration with CREEM
- Customer Portal: Subscription management interface
- Webhook Handling: Real-time event processing
Running the Demo Locally
Visit http://127.0.0.1:8000 to see the demo in action.
Deploy Demo for Free
The demo can be deployed to Render.com completely free! See demo/DEPLOYMENT.md for step-by-step instructions.
Live Demo: [Coming Soon]
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
Contributing
Please see CONTRIBUTING for details.
Community
- Issue Tracker
- Pull Requests
- Code of Conduct
License
The MIT License (MIT). Please see License File for more information.
All versions of creem-laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.8