Download the PHP package creem/laravel without Composer

On this page you can find all versions of the php package creem/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

CREEM for Laravel

The official Laravel package for CREEM — accept payments globally with automatic tax handling, subscription management, and license key distribution.

Latest Version on Packagist Tests

Features

Installation

Publish the configuration file:

Add your API credentials to .env:

Quick Start

Create a Checkout Session

Using the Billable Trait

Add the trait to your User model:

Run the migration to add the creem_customer_id column:

Now you can use billing methods directly on your User model:

API Reference

Checkouts

Products

Customers

Subscriptions

Transactions

Licenses

Discounts

Webhooks

CREEM webhooks are handled automatically. The package registers a POST route at /creem/webhook (configurable) and verifies signatures using HMAC-SHA256.

Setup

  1. Set your webhook secret in .env:

  2. Register your webhook URL in the CREEM dashboard under Developers > Webhook:

Listening to Events

Register listeners in your EventServiceProvider or use Laravel's event discovery:

Create a listener:

Available Events

Event Class Webhook Type Description
CheckoutCompleted checkout.completed Payment successful, order created
SubscriptionActive subscription.active New subscription created
SubscriptionPaid subscription.paid Recurring payment processed
SubscriptionCanceled subscription.canceled Subscription ended
SubscriptionScheduledCancel subscription.scheduled_cancel Cancellation pending at period end
SubscriptionPastDue subscription.past_due Payment failed, retrying
SubscriptionExpired subscription.expired Period ended without payment
SubscriptionTrialing subscription.trialing Trial period started
SubscriptionPaused subscription.paused Subscription paused
SubscriptionUpdated subscription.update Subscription modified
RefundCreated refund.created Refund issued
DisputeCreated dispute.created Chargeback opened

Convenience Access Events

The package also dispatches AccessGranted and AccessRevoked events for simplified access management (inspired by the CREEM TypeScript SDK's onGrantAccess/onRevokeAccess pattern):

You can also listen to the generic CreemWebhookReceived event to catch all webhook types:

Artisan Commands

Generate Webhook Secret

List Products

Configuration

The config file (config/creem.php) supports these options:

Option Env Variable Default Description
api_key CREEM_API_KEY '' Your CREEM API key
webhook_secret CREEM_WEBHOOK_SECRET '' Webhook signing secret
api_url CREEM_API_URL Auto-detected Override the API base URL
webhook_path CREEM_WEBHOOK_PATH creem/webhook Webhook route path
currency CREEM_CURRENCY USD Default currency
customer_model CREEM_CUSTOMER_MODEL App\Models\User Billable model class

Sandbox vs Production

The package automatically detects sandbox mode based on your API key prefix:

Error Handling

The package throws typed exceptions for different error scenarios:

Demo App

Live Demo: https://creem.h90.space — see the package in action with real CREEM API integration.

A fully functional Docker-based demo app is included in examples/demo/. It demonstrates:

No products yet? Click ⚡ Create Sample Products on the products page or run:

See the demo README for full setup instructions.

Testing

Or run directly:

The package ships with 78 tests covering:

Package Structure

Requirements

License

MIT License. See LICENSE for details.

Resources

Author

Built by Hani Amin@HaniAmin90 · Discord: xh90


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package creem/laravel contains the following files

Loading the files please wait ...