PHPackages                             litwicki/chargify-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. [API Development](/categories/api)
4. /
5. litwicki/chargify-bundle

ActiveSymfony-bundle[API Development](/categories/api)

litwicki/chargify-bundle
========================

Chargify billing service integration

2524PHP

Since Nov 6Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Litwicki ChargifyBundle
=======================

[](#litwicki-chargifybundle)

A bundle intending to seamlessly integrate to [Chargify](http://chargify.com) via their Api.

[![Development Status](https://camo.githubusercontent.com/5cd3c1b4630c2d512e9d274729543ca6c3775e3e98120ad054b77755b2d6f50a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c6f706d656e742d6163746976652d677265656e2e737667)](https://camo.githubusercontent.com/5cd3c1b4630c2d512e9d274729543ca6c3775e3e98120ad054b77755b2d6f50a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c6f706d656e742d6163746976652d677265656e2e737667) [![Seeking Maintainers](https://camo.githubusercontent.com/95c29372ac87e68e3c1ff2758e3b43abb32d58139010a385697588985af2b89b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e7472696275746f72732d322d7265642e737667)](https://camo.githubusercontent.com/95c29372ac87e68e3c1ff2758e3b43abb32d58139010a385697588985af2b89b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e7472696275746f72732d322d7265642e737667) [![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667) [![Symfony](https://camo.githubusercontent.com/1d2d80d2c53c6b3cacecc75c73e3442c162695b6c4b5b8d2037136448c138476/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d332e2a2d677265656e2e737667)](https://camo.githubusercontent.com/1d2d80d2c53c6b3cacecc75c73e3442c162695b6c4b5b8d2037136448c138476/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d332e2a2d677265656e2e737667) [![PHP](https://camo.githubusercontent.com/4dc2983a1619f1c4eae4827eb354375efdd387f6b7ab796b8f107d0cf873b9dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e2a2d626c75652e737667)](https://camo.githubusercontent.com/4dc2983a1619f1c4eae4827eb354375efdd387f6b7ab796b8f107d0cf873b9dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e2a2d626c75652e737667)

[![Build](https://camo.githubusercontent.com/9e347de985a9ab871c3ce515dbc7f108da90c56775b6d2c8bf6f706d7641175e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e6162696c6974792d35342d6f72616e67652e737667)](https://camo.githubusercontent.com/9e347de985a9ab871c3ce515dbc7f108da90c56775b6d2c8bf6f706d7641175e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e6162696c6974792d35342d6f72616e67652e737667) [![Accessibility](https://camo.githubusercontent.com/ee924d10ad3d76ba7d2e80d2286d1e2874d731cd970f1793e065f48bd3787017/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6163636573736962696c6974792d36392d626c75652e737667)](https://camo.githubusercontent.com/ee924d10ad3d76ba7d2e80d2286d1e2874d731cd970f1793e065f48bd3787017/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6163636573736962696c6974792d36392d626c75652e737667) [![Simplicity](https://camo.githubusercontent.com/ad44a5686c67149f9c6a199a5128e4282bbfc595706abf162e17e505adbe1cca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73696d706c69636974792d37352d677265656e2e737667)](https://camo.githubusercontent.com/ad44a5686c67149f9c6a199a5128e4282bbfc595706abf162e17e505adbe1cca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73696d706c69636974792d37352d677265656e2e737667) [![Bugs](https://camo.githubusercontent.com/e5997ad2875b6289488f6f3ac262d85c7385d349e7a7f18ef54b514bdbd533fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275675f70726f626162696c6974795f726564756374696f6e2d34362d6f72616e67652e737667)](https://camo.githubusercontent.com/e5997ad2875b6289488f6f3ac262d85c7385d349e7a7f18ef54b514bdbd533fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275675f70726f626162696c6974795f726564756374696f6e2d34362d6f72616e67652e737667)

Setup
-----

[](#setup)

Installation and configuration requires three simple steps.

### 1. Download the bundle

[](#1-download-the-bundle)

**IMPORTANT** While in early development, you will need to set your `minimum-stability` to `dev-master` to use this bundle.

```
$ composer require "litwicki/chargify-bundle"

```

### 2. Enable the bundle

[](#2-enable-the-bundle)

```
// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Litwicki\Bundle\ChargifyBundle\LitwickiChargifyBundle(),
        );

        // ...
    }
}

```

### 3. Configure the bundle

[](#3-configure-the-bundle)

```
# app/config/config.yml
litwicki_chargify:
    test_mode: false
    data_format: json
    route_prefix: /chargify
    domain: ~
    api_key: ~
    shared_key: ~

```

Optionally, you can include integration for [Chargify Direct](https://docs.chargify.com/api-call) (API V2)

```
# app/config/config.yml
litwicki_chargify:
    # ...
    direct:
        api_id: ~
        api_secret: ~
        api_password: ~

```

### 4. Serialization

[](#4-serialization)

Serialization is required to process Objects with the API so you will need to make sure you have enabled the serializer.

If not, you can do that by [following these instructions](http://symfony.com/doc/current/cookbook/serializer.html)

```
# app/config/config.yml
framework:
    # ...
    serializer:
        enabled: true

# app/config/services.yml
services:
    # ...
    get_set_method_normalizer:
        class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
        tags:
            - { name: serializer.normalizer }

```

Usage
-----

[](#usage)

This Bundle functions as a middle-tier layer between your Symfony app and Chargify. The handler for each entity leverages the available RESTful operations available.

Please make sure to reference the [Chargify Api Docs](https://reference.chargify.com/) for available parameters for each object.

### `GET` - Find an object.

[](#get---find-an-object)

```
//example load a Subscription by Id.
$id = 12345;
$handler = $this->get('chargify.handler.subscription');
$subscription = $handler->get($id);

```

### `POST` - Create a new object.

[](#post---create-a-new-object)

```
//let's create an example customer
$data = array(
    'first_name' => 'John',
    'last_name' => 'Doe',
    'email' => 'john.doe@example.com'
);

$handler = $this->get('chargify.handler.customer');
$customer = $handler->post($data);

```

### `PUT` - Updating an existing object.

[](#put---updating-an-existing-object)

Let's update the customer record we just created (example above).

```
//...
$customer->setFirstName('Jonathan');
$customer = $handler->put($customer);

```

### `DELETE` - Remove an object.

[](#delete---remove-an-object)

We changed our mind, let's remove this customer.

```
$response = $handler->delete($customer);

```

Contributing
------------

[](#contributing)

Thank you for considering contributing to this bundle! This bundle is in early development and is actively seeking maintainers.

***I am particularly interested in help with the following:***

- Testing all the things
- Identityfing and patching any security issues
- Ongoing support and improvements

Work-In-Progress Items:
-----------------------

[](#work-in-progress-items)

- Develop v2 API layer (handlers) for handling calls, signups, and card updates
- Force all submissions to pass through Form validation
- Setup serialization groups so read\_only fields aren't submitted via POST or PUT when serializing a full entity.

License
-------

[](#license)

This bundle is open-sourced software licensed under the MIT license.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

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/4fb72446ddd43ca29af489a6bb069cf3edad4c0d5b23459c3468c6bdea180070?d=identicon)[litwicki](/maintainers/litwicki)

---

Top Contributors

[![litwicki](https://avatars.githubusercontent.com/u/1413041?v=4)](https://github.com/litwicki "litwicki (26 commits)")

---

Tags

apibillingchargifysymfony-bundlesymfony3

### Embed Badge

![Health badge](/badges/litwicki-chargify-bundle/health.svg)

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

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

90923.5M35](/packages/facebook-php-business-sdk)[exsyst/swagger

A php library to manipulate Swagger specifications

35916.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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