PHPackages                             cloudswipe/cloudswipe-wp - 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. cloudswipe/cloudswipe-wp

ActiveLibrary[API Development](/categories/api)

cloudswipe/cloudswipe-wp
========================

CloudSwipe library for WordPress integrations

0.1.2(9y ago)118MITPHPPHP &gt;= 5.6

Since Feb 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/cloudswipe/cloudswipe-wp)[ Packagist](https://packagist.org/packages/cloudswipe/cloudswipe-wp)[ RSS](/packages/cloudswipe-cloudswipe-wp/feed)WikiDiscussions master Synced 1mo ago

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

CloudSwipe WordPress Library
============================

[](#cloudswipe-wordpress-library)

This library can be used to interact with the [CloudSwipe API](https://cloudswipe.com).

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

[](#requirements)

- WordPress
- [JSON API WP Client](https://github.com/joeybeninghove/json-api-wp-client)(auto-included via Composer)

Composer
--------

[](#composer)

You can install it via [Composer](https://getcomposer.org). Run the following command:

```
composer require cloudswipe/cloudswipe-wp
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

Usage
-----

[](#usage)

### Authentication

[](#authentication)

All API authentication is done using HTTP Authentication with the **Secret Key** available in your CloudSwipe account.

You can set the **Secret Key** for all requests like this:

```
CloudSwipe_Wp::set_secret_key( "sk_store_12345" );
```

### Invoices

[](#invoices)

#### Create New Invoice

[](#create-new-invoice)

```
// bare minimum invoice
$invoice = CloudSwipe_Wp_Invoice::create([
  "description" => "T-Shirt",
  "total" => 1995,
  "currency" => "USD"
]);

// more detailed invoice
$invoice = CloudSwipe_Wp_Invoice::create([
  "total" => 2705,
  "currency" => "USD",
  "customer" => [
    "name" => "Bud Abbott",
    "email" => "bud@abbott.com"
    "billing_address" => [
      "name" => "Bud Abbott",
      "company" => "Laugh Lines",
      "line1" => "123 Anystreet",
      "line2" => "Suite A",
      "city" => "Anytown",
      "state" => "VA",
      "zip" => "12345",
      "country" => "US",
      "phone" => "111-222-3333"
    ],
    "shipping_address" => [
      "name" => "Lou Costello",
      "company" => "Laugh Lines",
      "line1" => "456 Otherstreet",
      "line2" => "Suite Z",
      "city" => "Othertown",
      "state" => "VA",
      "zip" => "12345",
      "country" => "US",
      "phone" => "111-222-3333"
    ],
    "line_items" => [
      "header" => ["Item", "Description", "Quantity", "Total"],
      "rows" => [
        ["T-Shirt", "Small, Blue", 1, 1095],
        ["Mug", "Branded Coffee Mug", 2, 535]
      ]
    ],
    "line_totals" => [
      "rows" => [
        ["Discount" => 500],
        ["Tax" => 245],
        ["Shipping" => 795]
      ]
    ],
    "metadata" => [
      "some-custom-field" => "some-custom-value"
    ]
  ]
]);
```

#### Get A Single Invoice

[](#get-a-single-invoice)

```
$invoice = CloudSwipe_Wp_Invoice::get_one( "in_12345" );
```

#### Get All Invoices

[](#get-all-invoices)

```
$invoices = CloudSwipe_Wp_Invoice::get_all();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4a01f5152da9e683857b536b05b6a2204fb6506386ee523d759cfb9f9503392?d=identicon)[joeybeninghove](/maintainers/joeybeninghove)

---

Top Contributors

[![joeybeninghove](https://avatars.githubusercontent.com/u/31863?v=4)](https://github.com/joeybeninghove "joeybeninghove (7 commits)")

---

Tags

cloudswipewordpresswordpress-php-libraryjsonapiwordpresscloudswipe

### Embed Badge

![Health badge](/badges/cloudswipe-cloudswipe-wp/health.svg)

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

###  Alternatives

[nathanmac/parser

Simple PHP Parser Utility Library for API Development

2151.0M3](/packages/nathanmac-parser)[wp-graphql/wp-graphql-woocommerce

WooCommerce bindings for WPGraphQL

69146.8k](/packages/wp-graphql-wp-graphql-woocommerce)[nekojira/wp-api-menus

Extends WordPress WP API with menu routes.

1401.5k](/packages/nekojira-wp-api-menus)[nilportugues/jsonapi-bundle

Symfony 2 &amp; 3 JSON API Transformer Package

11446.0k](/packages/nilportugues-jsonapi-bundle)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

141.6M3](/packages/cloudcreativity-json-api-testing)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)

PHPackages © 2026

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