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 2y ago1 watchersCompare

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

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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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://avatars.githubusercontent.com/u/100063106?v=4)[NUG01](/maintainers/NUG01)[@NUG01](https://github.com/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

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

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