PHPackages                             cometcult/credit-bundle - 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. cometcult/credit-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

cometcult/credit-bundle
=======================

User credit bundle for use with Symfony2

1.0.0(12y ago)22762MITPHPPHP &gt;=5.3.2

Since Dec 16Pushed 12y ago4 watchersCompare

[ Source](https://github.com/cometcult/CometCultCreditsBundle)[ Packagist](https://packagist.org/packages/cometcult/credit-bundle)[ Docs](https://github.com/cometcult/CometCultCreditsBundle)[ RSS](/packages/cometcult-credit-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

CometCultCreditsBundle
======================

[](#cometcultcreditsbundle)

[![Build Status](https://camo.githubusercontent.com/3065fb6562f6102534088c0374177b6abcf03f181abbbe8d891b9c490e8dd2ba/68747470733a2f2f7472617669732d63692e6f72672f636f6d657463756c742f436f6d657443756c744372656469747342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cometcult/CometCultCreditsBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/a6c02267623a149e66a9a1cfc2726c8798ca3571fe3449b91aa73573a649fa06/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6d657463756c742f436f6d657443756c744372656469747342756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d32313834303734376133373231383430376435383832383130313137323131383431306463313836)](https://scrutinizer-ci.com/g/cometcult/CometCultCreditsBundle/)

Symfony 2 Bundle for storing user credits/points

Currently supports only Doctrine MongoDB

Installation
------------

[](#installation)

### Composer

[](#composer)

Just add to your composer.json file:

```
{
    "require": {
        "cometcult/credit-bundle": "dev-master"
    }
}
```

### Application Kernel

[](#application-kernel)

Add the bundle to your application's kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new CometCult\CreditsBundle\CometCultCreditsBundle(),
        // ...
    );
}
```

Usage
-----

[](#usage)

CometCultCreditsBundle should be operated from CreditsManager

Create credit instance

```
$creditsManager = $this->get('comet_cult_credits.manager');
$credit = $creditsManager->createCredit(200, 'abc123');
```

Then persist credit instance with updateCredit() method

```
$creditsManager->updateCredit($credit);
```

Basic operations should be performed providing {ownerId} and amount of credit if needed

```
$creditsManager->addCredit(100, 'abc123');
$creditsManager->subtractCredit(42, 'abc123');
```

You can always check the balance of a user with the BalanceChecker

```
$creditBalanceChecker = $this->get('comet_cult_credits.balance_checker');
$creditBalanceChecker->getCreditBalance('abc123');
```

Or check against a configurable threshold. By default the minimum threshold is 0 and maximum threshold is 100

```
$creditBalanceChecker->hasLowCreditBalance('abc123');
```

Configuration
-------------

[](#configuration)

You can configure your own threshold values. To do that just add to your Symfony config:

```
comet_cult_credit:
	min_threshold: 0 # min value of your choice
	max_threshold: 100 # max value of your choice
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98daa18ca2b956cbb98b98a8119b7d091f88393ae135d37d4aa398284022f3b4?d=identicon)[grEvenX](/maintainers/grEvenX)

---

Top Contributors

[![jacekelgda](https://avatars.githubusercontent.com/u/1003372?v=4)](https://github.com/jacekelgda "jacekelgda (3 commits)")

---

Tags

creditbalance

### Embed Badge

![Health badge](/badges/cometcult-credit-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cometcult-credit-bundle/health.svg)](https://phpackages.com/packages/cometcult-credit-bundle)
```

###  Alternatives

[021/laravel-wallet

Reliable and flexible wallet system for Laravel

2785.2k](/packages/021-laravel-wallet)[freelancehunt/php-credit-card-validator

Validates popular debit and credit cards' numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.

18620.4k2](/packages/freelancehunt-php-credit-card-validator)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[cometcult/braintree-bundle

Symfony 2 Bundle for Braintree's PHP client library

2185.9k](/packages/cometcult-braintree-bundle)[tritoq/cielo

Classe para integração com o Webservice da Cielo e a ferramenta de Análise de Risco

1916.1k1](/packages/tritoq-cielo)[mrprompt/cielo

Integration with Cielo gateway.

481.9k1](/packages/mrprompt-cielo)

PHPackages © 2026

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