Download the PHP package romansh/laravel-creem without Composer

On this page you can find all versions of the php package romansh/laravel-creem. 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

LaravelCreem Package

A Laravel package for Creem.io payment provider. Built with Laravel-native patterns, clean architecture, and developer experience as top priorities.

Latest Version Total Downloads License

Features

Requirements

Installation

Install via Composer:

Publish the configuration file:

Add your Creem credentials to .env:

Demo Application

A full-featured demo app is available as a separate package: romansh/laravel-creem-demo

Open http://localhost/creem-demo — configure API keys, webhook secret, and webhook URL directly in the browser. No .env editing required.

The demo covers products, subscriptions, checkouts, discounts, transactions, and webhook event handling with live logs. Docker setup includes optional Cloudflare Tunnel for webhook testing.

Configuration

The package supports multiple configuration profiles. Open config/creem.php to configure:

Usage

Basic Usage (Default Profile)

For direct or off-session payment flows, pass an explicit price_id rather than only a product_id. Hosted checkout can apply provider-side regional price selection, but saved-card style charges should identify the exact regional price to avoid currency mismatches.

Using Named Profiles

Using Inline Configuration

Services

Products

Checkouts

Customers

Subscriptions

Transactions

Licenses

Discount Codes

Webhooks

Automatic Setup

Webhook routes are automatically registered. The default endpoint is:

Configure the webhook URL in your Creem dashboard:

Webhook Events

The package dispatches Laravel events for all Creem webhook types. Each webhook is mapped to a corresponding event class under Romansh\LaravelCreem\Events. All Creem webhook events extend CreemEvent and expose the following typed properties:

Common webhook event classes provided by the package include:

Additionally the package emits two application-level events to simplify access provisioning logic:

Listening to Events

Register event listeners in app/Providers/EventServiceProvider.php:

Create a listener example:

Custom Webhook Handling

You can also create a custom webhook controller and apply the VerifyCreemWebhook middleware:

Testing Webhooks Locally

Use the built-in Artisan command to test webhooks:

Error Handling

The package throws specific exceptions for different error scenarios:

Testing

The package includes comprehensive tests:

Using HTTP Fakes in Tests

Example Controllers

Checkout Controller

Subscription Management Controller

License Validation Controller

Advanced Configuration

Custom HTTP Settings

Modify config/creem.php:

Custom Webhook Path

Multiple Webhook Endpoints

You can set up different webhook endpoints for different profiles:

API Reference

Profile Resolution Rules

  1. String (Profile Name): Loads named profile from config

  2. No Profile (Default): Uses 'default' profile

  3. Array (Inline Config): Uses provided configuration

Troubleshooting

Invalid Webhook Signature

Ensure your webhook secret matches between .env and Creem dashboard.

API Key Issues

Missing Profile Exception

Solution: Add the profile to config/creem.php or use an existing profile name.

Contributing

Contributions are welcome! Please ensure:

Run Laravel Pint for code formatting:

Security

If you discover a security vulnerability, please email the package maintainer.

License

The MIT License (MIT). Please see License File for more information.

Support


All versions of laravel-creem with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.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 romansh/laravel-creem contains the following files

Loading the files please wait ...