PHPackages                             csb/php - 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. csb/php

ActiveLibrary

csb/php
=======

CSB Package for PHP applications.

2.0.3(5y ago)110.9kMITPHPPHP &gt;=5.4

Since Apr 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/customersuccessbox/csb-php)[ Packagist](https://packagist.org/packages/csb/php)[ RSS](/packages/csb-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

CSB PHP Package to Send Data to Server
--------------------------------------

[](#csb-php-package-to-send-data-to-server)

#### Requirements

[](#requirements)

```
php >= 5.4
```

#### Install Package

[](#install-package)

```
composer require csb/php -vvv --no-scripts --optimize-autoloader --ansi

```

#### Update Package

[](#update-package)

```
composer update csb/php -vvv --no-scripts --optimize-autoloader --ansi

```

#### Initiate Package

[](#initiate-package)

##### For Laravel, Add this Code to register function of AppServiceProvider.php

[](#for-laravel-add-this-code-to-register-function-of-appserviceproviderphp)

```
$this->app->singleton('csb', function () {
    return new CSB(
        'https://{{domain}}.customersuccessbox.com',
        '{{secret}}',
        'async'
    );
});

$CSB = app('csb');
```

##### For PHP, Simply make singleton object, valid throughout request

[](#for-php-simply-make-singleton-object-valid-throughout-request)

```
$CSB = new CSB(
    'https://{{domain}}.customersuccessbox.com',
    '{{secret}}',
    'async'
);
```

##### Note: We can use 'async' for Linux Systems only, For Windows Systems use 'sync'

[](#note-we-can-use-async-for-linux-systems-only-for-windows-systems-use-sync)

#### Functions

[](#functions)

##### Login

[](#login)

```
$CSB->login('Account1', 'User1');
```

##### Logout

[](#logout)

```
$CSB->logout('Account1', 'User1');
```

##### Account \[account($accountID, $attributes = \[\])\]

[](#account-accountaccountid-attributes--)

```
$CSB->account('Account1', ['attribute_1' => 'value1', 'attribute_2' => 'value2', 'custom_Field' => 'custom_value']);
```

[Account Properties](https://developers.customersuccessbox.com/http-server-api/accounts)

##### User \[user($accountID, $userID, $attributes = \[\])\]

[](#user-useraccountid-userid-attributes--)

```
$CSB->user('Account1', 'User1', ['attribute_1' => 'value1', 'attribute_2' => 'value2', 'custom_Field' => 'custom_value']);
```

[User Properties](https://developers.customersuccessbox.com/http-server-api/users)

##### Subscription \[subscription($accountID, $subscriptionID, $attributes = \[\])\]

[](#subscription-subscriptionaccountid-subscriptionid-attributes--)

```
$CSB->subscription('Account1', 'Subscription1', ['attribute_1' => 'value1', 'attribute_2' => 'value2']);
```

[Subscription Properties](https://developers.customersuccessbox.com/http-server-api/subscriptions)

##### Invoice \[invoice($accountID = null, $subscriptionID = null, $invoiceID, $attributes = \[\])\]

[](#invoice-invoiceaccountid--null-subscriptionid--null-invoiceid-attributes--)

```
$CSB->invoice('Account1', null, 'Invoice1', ['attribute_1' => 'value1', 'attribute_2' => 'value2']);
$CSB->invoice(null, 'Subscription1', 'Invoice1', ['attribute_1' => 'value1', 'attribute_2' => 'value2']);
```

[Invoice Properties](https://developers.customersuccessbox.com/http-server-api/invoices)

##### Feature \[feature($accountID, $userID, $productID, $moduleID, $featureID, $total = 1)\]

[](#feature-featureaccountid-userid-productid-moduleid-featureid-total--1)

###### To Send Features to CSB

[](#to-send-features-to-csb)

```
$CSB->feature('Account1', 'User1', 'ProductName', 'ModuleName', 'FeatureName');
```

[Feature Properties](https://developers.customersuccessbox.com/http-server-api/features)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% 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

Every ~23 days

Recently: every ~7 days

Total

12

Last Release

1960d ago

Major Versions

1.0.7 → 2.0.02020-12-10

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.6PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64081899?v=4)[Amritpal Singh](/maintainers/boparaiamritcsb)[@boparaiamritcsb](https://github.com/boparaiamritcsb)

---

Top Contributors

[![boparaiamritcsb](https://avatars.githubusercontent.com/u/64081899?v=4)](https://github.com/boparaiamritcsb "boparaiamritcsb (17 commits)")[![boparaiamrit](https://avatars.githubusercontent.com/u/1220153?v=4)](https://github.com/boparaiamrit "boparaiamrit (3 commits)")

---

Tags

phppackagecsb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/csb-php/health.svg)

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)

PHPackages © 2026

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