PHPackages                             wowmaking/web-purchases - 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. [Payment Processing](/categories/payments)
4. /
5. wowmaking/web-purchases

ActiveLibrary[Payment Processing](/categories/payments)

wowmaking/web-purchases
=======================

2.1.3(1w ago)01.6k↑23.8%2[1 PRs](https://github.com/wowmaking/web-purchases/pulls)MITPHPPHP &gt;=8.0 &lt;8.5

Since Aug 26Pushed 1w ago2 watchersCompare

[ Source](https://github.com/wowmaking/web-purchases)[ Packagist](https://packagist.org/packages/wowmaking/web-purchases)[ Docs](https://github.com/wowmaking/web-purchases)[ RSS](/packages/wowmaking-web-purchases/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (163)Used By (0)

Install
=======

[](#install)

```
composer require wowmaking/web-purchases

```

Supported payment services
==========================

[](#supported-payment-services)

- stripe
- recurly
- paypal (Not supports customers)
- solidgate (Not supports customers)

Clients required parameters
===========================

[](#clients-required-parameters)

### stripe

[](#stripe)

- client\_type = stripe
- secret\_key

### recurly

[](#recurly)

- client\_type = recurly
- public\_key
- secret\_key

### paypal

[](#paypal)

- client\_type = paypal
- secret\_key
- client\_id
- sandbox

### solidgate

[](#solidgate)

- client\_type = solidgate
- secret\_key
- merchant\_id
- webhook\_secret\_key
- webhook\_merchant\_id

Require
=======

[](#require)

- "php": "&gt;=7.2.0"
- "stripe/stripe-php": "^7"
- "recurly/recurly-client": "^4"
- "guzzlehttp/guzzle": "^7.3"
- "facebook/php-business-sdk": "^12.0"

Entities
========

[](#entities)

Client
------

[](#client)

```
use Wowmaking\WebPurchases\WebPurchases;

$clientParams = [
    'client_type' => 'stripe',
    'secret_key' => ...
];

$subtruckParams = [
    'token' => ...,
    'idfm' => ...
];

$fbPixelParams = [
    'token' => ...,
    'pixel_id' => ...,
    'domain' => ...,
    'ip' => ...,
    'user_agent' => ...,
    'fbc' => ...,
    'fbp' => ...,
];

$webPurchases = WebPurchases::service(array $clientParams, ?array $subtruckParams, ?array $fbPixelParams);

```

Price
-----

[](#price)

#### Fields

[](#fields)

- id
- amount
- currency
- trial\_period\_days
- trial\_price\_amount

#### Methods

[](#methods)

```
use Wowmaking\WebPurchases\Resources\Entities\Price;

$prices = $webPurchases->getPurchasesClient()->getPrices(array $filterPricesIds = []));

```

Customer
--------

[](#customer)

#### Fields

[](#fields-1)

- id
- email
- provider
- provider\_response

#### Methods

[](#methods-1)

```
use Wowmaking\WebPurchases\Resources\Entities\Customer;

$customer = $webPurchases->getPurchasesClient()->createCustomer(array $data);

$customers = $webPurchases->getPurchasesClient()->getCustomers(array $params);

$customer = $webPurchases->getPurchasesClient()->getCustomer(string $customerId);

$customer = $webPurchases->getPurchasesClient()->updateCustomer(string $customerId, array $data);

```

Subscription
------------

[](#subscription)

#### Fields

[](#fields-2)

- transaction\_id
- plan\_name
- email
- currency
- amount
- customer\_id
- created\_at
- trial\_start\_at
- trial\_end\_at
- expire\_at
- canceled\_at
- state
- is\_active
- provider
- provider\_response

### Methods

[](#methods-2)

#### Create subscription

[](#create-subscription)

```
use Wowmaking\WebPurchases\Resources\Entities\Subscription;

$subscription = $webPurchases->getPurchasesClient()->createSubscription(array $params);

!!!
This method will automatically send an event to Subtruk and FbPixel
if you specified the correct settings ($subtruckParams, $fbPixelParams)
when calling the service

```

#### Get subscriptions

[](#get-subscriptions)

```
use Wowmaking\WebPurchases\Resources\Entities\Subscription;

$subscriptions = $webPurchases->getPurchasesClient()->getSubscriptions(string $customerId);

```

#### Cancel subscription

[](#cancel-subscription)

```
use Wowmaking\WebPurchases\Resources\Entities\Subscription;

$subscriptions = $webPurchases->getPurchasesClient()->cancelSubscription(string $subscriptionId);

```

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance98

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.2% 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 ~13 days

Recently: every ~69 days

Total

140

Last Release

11d ago

Major Versions

1.4.5.beta → 2.0.02025-09-16

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

1.4.betaPHP &gt;=8.0 &lt;8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40887845?v=4)[alexyermalovich](/maintainers/alexyermalovich)[@alexyermalovich](https://github.com/alexyermalovich)

![](https://www.gravatar.com/avatar/88d73fdbaa3fe33c02dfc5d05dd534747d0f6665322ee3ff7c95dc3c7c3baec2?d=identicon)[e.makeychik](/maintainers/e.makeychik)

![](https://www.gravatar.com/avatar/24cbf62ecb38efcfbbc3f0beae3d33d6e5f114fc8908b4caf9c3ec2947695388?d=identicon)[s.davydau](/maintainers/s.davydau)

![](https://avatars.githubusercontent.com/u/20269767?v=4)[42p](/maintainers/42p)[@42p](https://github.com/42p)

---

Top Contributors

[![alexyermalovich](https://avatars.githubusercontent.com/u/40887845?v=4)](https://github.com/alexyermalovich "alexyermalovich (116 commits)")[![ilyutko](https://avatars.githubusercontent.com/u/89082108?v=4)](https://github.com/ilyutko "ilyutko (57 commits)")[![OlegMartishevichWow](https://avatars.githubusercontent.com/u/205162647?v=4)](https://github.com/OlegMartishevichWow "OlegMartishevichWow (21 commits)")[![d-stolyarov](https://avatars.githubusercontent.com/u/171009749?v=4)](https://github.com/d-stolyarov "d-stolyarov (11 commits)")[![42p](https://avatars.githubusercontent.com/u/20269767?v=4)](https://github.com/42p "42p (4 commits)")[![zelinskaja](https://avatars.githubusercontent.com/u/39617532?v=4)](https://github.com/zelinskaja "zelinskaja (3 commits)")[![taniaost](https://avatars.githubusercontent.com/u/53557353?v=4)](https://github.com/taniaost "taniaost (1 commits)")[![kurtsergey](https://avatars.githubusercontent.com/u/4003705?v=4)](https://github.com/kurtsergey "kurtsergey (1 commits)")

---

Tags

wowmaking

### Embed Badge

![Health badge](/badges/wowmaking-web-purchases/health.svg)

```
[![Health](https://phpackages.com/badges/wowmaking-web-purchases/health.svg)](https://phpackages.com/packages/wowmaking-web-purchases)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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