PHPackages                             jacobarriola/woographql-product-bundles - 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. jacobarriola/woographql-product-bundles

ActiveWordpress-plugin[API Development](/categories/api)

jacobarriola/woographql-product-bundles
=======================================

Add WooCommerce Product Bundles support to the WPGraphQL schema.

0.0.4(5y ago)105954[4 issues](https://github.com/jacobarriola/woographql-product-bundles/issues)GPL-3.0-or-laterPHPPHP &gt;=7.1.0

Since Nov 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jacobarriola/woographql-product-bundles)[ Packagist](https://packagist.org/packages/jacobarriola/woographql-product-bundles)[ RSS](/packages/jacobarriola-woographql-product-bundles/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

WooGraphQL Product Bundles
==========================

[](#woographql-product-bundles)

Add WooCommerce Product Bundle support to your WPGraphQL schema.

Requirements
------------

[](#requirements)

- PHP +7.1
- WordPress +5.0
- WPGraphQL +1
- WooGraphQL +0.8.0
- WooCommerce +4.7.0
- WooCommerce Product Bundles +0.5.0

### Documentation

[](#documentation)

#### Add To Cart Mutation

[](#add-to-cart-mutation)

For now, add to cart is a different mutation since additional data is required. The mutation mimics the existing WooGraphQL `addToCart`, with a few differences.

Essentially it attempts to mimic the underlying Product Bundles' API, which is found [https://docs.woocommerce.com/document/bundles/bundles-functions-reference/#add\_bundle\_to\_cart](https://docs.woocommerce.com/document/bundles/bundles-functions-reference/#add_bundle_to_cart)

```
mutation addToCartBundle(input: { clientMutationId: "123" quantity: 1 productId: 456789 extraData
: SEE_BELOW
 } ) {
    ...
}
```

The `extraData` input is a JSON value.

##### Arguments

[](#arguments)

- `object index`: The bundle item ID
- `product_id`: Product ID of the bundled item
- `quantity`: Quantity of the bundled item
- `variation_id`: The variation ID of the selected variation, if applicable
- `attributes`: An object with the key as `attribute_ATTRIBUTE_SLUG` and the value as the attribute value, if applicable

Example:

```
{
  "765": {
    "product_id": "9876",
    "quantity": "1",
    "optional_selected": "yes",
    "variation_id": "4321",
    "attributes": {
      "attribute_pa_color": "red",
      "attribute_pa_size": "2xl"
    }
  },
  "896": {
    "product_id": "1234",
    "quantity": "1"
  }
}
```

In this example, the Bundle contains two Bundle Items, `765` and `896`. `765` is a variable product (designated by the `product_id: 9876`). The `variation_id` and attributes are required . On the other hand, `896` is a simple product. It's only passing in the `product_id`.

Todo
----

[](#todo)

- return appropriate types instead of JSON for `allowedVariations` and `defaultVariationAttributes`
- simplify the `addToCartBundle` or merge it with the core `addToCart` mutation

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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 ~55 days

Total

4

Last Release

1845d ago

PHP version history (2 changes)0.0.1PHP ^7.4||^8.0

0.0.2PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1371573?v=4)[Jacob Arriola](/maintainers/jacobarriola)[@jacobarriola](https://github.com/jacobarriola)

---

Top Contributors

[![jacobarriola](https://avatars.githubusercontent.com/u/1371573?v=4)](https://github.com/jacobarriola "jacobarriola (16 commits)")

### Embed Badge

![Health badge](/badges/jacobarriola-woographql-product-bundles/health.svg)

```
[![Health](https://phpackages.com/badges/jacobarriola-woographql-product-bundles/health.svg)](https://phpackages.com/packages/jacobarriola-woographql-product-bundles)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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