PHPackages                             nikjaysix/laravel-chargify - 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. nikjaysix/laravel-chargify

ActivePackage

nikjaysix/laravel-chargify
==========================

Laravel service provider for the chargify API using the chargley chargify SDK v0.1.3.

v0.0.2(8y ago)112.3k1MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/NikJaySix/Laravel-Chargify)[ Packagist](https://packagist.org/packages/nikjaysix/laravel-chargify)[ RSS](/packages/nikjaysix-laravel-chargify/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Chargify Wrapper for Laravel 5.+
================================

[](#chargify-wrapper-for-laravel-5)

This is a wrapper using the chargley chargify SDK v0.1.4. It creates a service provider and facade for autoloading into laravel.

How to Install
--------------

[](#how-to-install)

### Laravel 5.+

[](#laravel-5)

1. Install the `nikjaysix/laravel-chargify` package

    ```
    $ composer require nikjaysix/laravel-chargify
    ```
2. Update `config/app.php` to activate the LaravelChargify package

    ```
    # Add `LaravelChargifyServiceProvider` to the `providers` array
    'providers' => array(
        ...
        NikJaySix\LaravelChargify\LaravelChargifyServiceProvider::class,
    )

    # Add the `LaravelChargifyFacade` to the `aliases` array
    'aliases' => array(
        ...
        'Chargify' => NikJaySix\LaravelChargify\LaravelChargifyFacade::class
    )
    ```
3. Generate a Chargify config file

    ```
    $ php artisan vendor:publish
    ```
4. Update `app/config/chargify.php` with your chargify API credentials

    ```
    return array(
        'hostname' => '****.chargify.com',
        'api_key' => 'chargify api key',
        'shared_key' => 'chargify shared key'
    );
    ```

Example Usage
-------------

[](#example-usage)

Creating subscriptions with v1 of the API

```
$chargify = App::make('chargify');

// $handle is the subscription handle created in chargify
$new_subscription = $chargify->subscription()
    ->setProductHandle($handle)
    ->setCustomerAttributes([
        'first_name' => $user->first_name,
        'last_name' => $user->last_name,
        'email' => $user->email,
        'reference' => $user->id
    ])
    ->create();

if($new_subscription->isError()) {
    $errors = $new_subscription->getErrors();
    // handle errors
}
```

Retrieve a user's subscription

```
$chargify = App::make('chargify');

$subscription = $chargify->subscription();

// $user_subscription->subscription_id is the subscription ID generated by chargify
$subscription->read($user_subscription->subscription_id);

if($subscription->isError()) {
    $errors = $subscription->getErrors();
    // handle errors
}

// store subscription data in session
foreach ($subscription as $key => $value) {
    session(['subscription_' . $key => $value]);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~224 days

Total

2

Last Release

3008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/391e06573d71c2b77f41c422b16e91dc0e3e65cf836b09eee59d68828eba82c3?d=identicon)[NikJaySix](/maintainers/NikJaySix)

---

Top Contributors

[![NikJaySix](https://avatars.githubusercontent.com/u/1988361?v=4)](https://github.com/NikJaySix "NikJaySix (11 commits)")

### Embed Badge

![Health badge](/badges/nikjaysix-laravel-chargify/health.svg)

```
[![Health](https://phpackages.com/badges/nikjaysix-laravel-chargify/health.svg)](https://phpackages.com/packages/nikjaysix-laravel-chargify)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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