PHPackages                             nug01/molare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. nug01/molare

ActiveLibrary[Payment Processing](/categories/payments)

nug01/molare
============

This package helps in fastspring subscriptions

17PHP

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/NUG01/fastspring-molare)[ Packagist](https://packagist.org/packages/nug01/molare)[ RSS](/packages/nug01-molare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NUG01 Molare - FastSpring Subscriptions Integration for Laravel
===============================================================

[](#nug01-molare---fastspring-subscriptions-integration-for-laravel)

**NUG01 Molare** is a Laravel package that simplifies the integration of FastSpring subscriptions into your Laravel application. It provides a convenient set of controllers and helper functions to manage subscriptions.

### Installation

[](#installation)

You can install the package via Composer by running the following command:

```
composer require nug01/molare:dev-master
```

### Environment

[](#environment)

Add the fastspring secret key in .env like this:

```
FASTSPRING_TOKEN={YOUR_FASTSPRING_SECRET_KEY}
```

### Publishing

[](#publishing)

Next, publish the package's configuration file, If you want:

```
php artisan vendor:publish --provider="NUG01\Molare\MolareServiceProvider" --tag="config"molare:dev-master
```

Usage
=====

[](#usage)

### Setup

[](#setup)

Add the following credentials to your `.env` file:

```
FASTSPRING_USERNAME=your_fastspring_username
FASTSPRING_PASSWORD=your_fastspring_password
```

```
Account: Get an account.

```sh
use App\Services\FastSpringService;
// ...

$service = new FastSpringService();
$response = $service->getAccount($account_id);
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

Management URL: Get the management URL for an account.

```
use App\Services\FastSpringService;

// ...

$service = new FastSpringService();
$response = $service->getManagementUrl($account_id);
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

Subscription: Get subscription details.

```
use App\Services\FastSpringService;

// ...

$service = new FastSpringService();
$response = $service->getSubscription($subscription_id);
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

Update Account: Update account details.

```
use App\Services\FastSpringService;
use Illuminate\Http\Request;

// ...

$service = new FastSpringService();
$response = $service->updateAccount($account_id, $request);
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

Pause Subscription: Pause a subscription.

```
use App\Services\FastSpringService;

// ...

$service = new FastSpringService();
$response = $service->pauseSubscription($subscription_id, 1); // Adjust period count as needed
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

Resume Subscription: Resume a paused subscription.

```
use App\Services\FastSpringService;

// ...

$service = new FastSpringService();
$response = $service->resumeSubscription($subscription_id);
return response()->json(['data' => $response['data'], 'result' => $response['result']]);

```

### Configuration

[](#configuration)

You can configure the package by modifying the config/fastspring.php file. This file allows you to set various options related to the FastSpring integration and subscription management. Support

### Support

[](#support)

If you encounter any issues or need assistance, please open an issue on GitHub. License

### License

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57040ac33a1bed76e1201fef056447696f526aaf3ac76ed0a4acace96f708e31?d=identicon)[NUG01](/maintainers/NUG01)

---

Top Contributors

[![NUG01](https://avatars.githubusercontent.com/u/100063106?v=4)](https://github.com/NUG01 "NUG01 (24 commits)")

### Embed Badge

![Health badge](/badges/nug01-molare/health.svg)

```
[![Health](https://phpackages.com/badges/nug01-molare/health.svg)](https://phpackages.com/packages/nug01-molare)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
