PHPackages                             vatly/vatly-fluent-php - 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. vatly/vatly-fluent-php

ActiveLibrary[Payment Processing](/categories/payments)

vatly/vatly-fluent-php
======================

Framework-agnostic fluent PHP SDK for Vatly billing

v0.4.0-alpha.1(2mo ago)1170↓33.3%[1 issues](https://github.com/Vatly/vatly-fluent-php/issues)1MITPHPPHP ^8.2CI passing

Since Feb 26Pushed 2mo agoCompare

[ Source](https://github.com/Vatly/vatly-fluent-php)[ Packagist](https://packagist.org/packages/vatly/vatly-fluent-php)[ RSS](/packages/vatly-vatly-fluent-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (8)Versions (13)Used By (1)

Vatly Fluent PHP
================

[](#vatly-fluent-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/87ec417c1e5050c6b5e1d0a3198757e3b5abc0339f6c16bebbbdf391e62850e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661746c792f7661746c792d666c75656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vatly/vatly-fluent-php)[![Tests](https://github.com/Vatly/vatly-fluent-php/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Vatly/vatly-fluent-php/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/4fe744f668ec28dd76301b704ff5351c4c11bf43813c6a5189c917dd43b77e32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661746c792f7661746c792d666c75656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vatly/vatly-fluent-php)

> **Alpha release -- under active development. Expect breaking changes.**

Framework-agnostic fluent PHP SDK for [Vatly](https://vatly.com) billing. Wraps the [vatly-api-php](https://github.com/Vatly/vatly-api-php) client with expressive, action-based methods for managing subscriptions, checkouts, customers, and webhooks.

This package serves as the core logic layer, designed to be portable across PHP frameworks and as a reference for future language ports (JS, Python).

Installation
------------

[](#installation)

```
composer require vatly/vatly-fluent-php
```

This package follows semantic versioning. During alpha, pin to exact versions if you need stability:

```
composer require vatly/vatly-fluent-php:v0.3.0-alpha.2
```

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

[](#requirements)

- PHP 8.2+
- A Vatly API key ([vatly.com](https://vatly.com))

What's included
---------------

[](#whats-included)

- **Actions:** CreateCheckout, CreateCustomer, GetCheckout, GetCustomer, GetSubscription, GetPaymentMethodUpdateUrl, CancelSubscription, SwapSubscriptionPlan
- **Webhook handling:** Signature verification, event factory, typed event objects
- **Contracts:** BillableInterface, repository interfaces for framework integration
- **Responses:** Typed response objects for all actions

Usage
-----

[](#usage)

```
use Vatly\API\VatlyApiClient;
use Vatly\Fluent\Actions\CreateCheckout;

$client = new VatlyApiClient();
$client->setApiKey('test_xxxxxxxxxxxx');

$checkout = new CreateCheckout($client);
$response = $checkout->execute([
    'products' => ['subscription_plan_id'],
    'customerId' => 'cust_xxx',
    'redirectUrlSuccess' => 'https://example.com/success',
    'redirectUrlCanceled' => 'https://example.com/canceled',
]);
```

For framework integrations
--------------------------

[](#for-framework-integrations)

If you're using Laravel, see [vatly/vatly-laravel](https://github.com/Vatly/vatly-laravel) which provides Eloquent models, traits, builders, and event listeners on top of this package.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity16

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.

###  Release Activity

Cadence

Every ~2 days

Total

7

Last Release

67d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78913b3d9fc2c28cf333e08366566ac23d0894a14d4c0914365acfb208420c29?d=identicon)[sandervanhooft](/maintainers/sandervanhooft)

---

Top Contributors

[![sandervanhooft](https://avatars.githubusercontent.com/u/7265703?v=4)](https://github.com/sandervanhooft "sandervanhooft (24 commits)")

---

Tags

billingframework-agnosticphpsaassubscriptions-and-paymentsvatlybillingpaymentssubscriptionsvatly

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vatly-vatly-fluent-php/health.svg)

```
[![Health](https://phpackages.com/badges/vatly-vatly-fluent-php/health.svg)](https://phpackages.com/packages/vatly-vatly-fluent-php)
```

###  Alternatives

[mollie/laravel-cashier-mollie

Laravel Cashier provides an expressive, fluent interface to Mollie's subscription billing services.

172155.4k1](/packages/mollie-laravel-cashier-mollie)[mmanos/laravel-billing

A billing package for Laravel 4.

451.3k](/packages/mmanos-laravel-billing)[chargebee/cashier

Laravel Cashier for Chargebee provides an expressive, fluent interface to Chargebee's subscription billing services.

627.4k1](/packages/chargebee-cashier)[ptuchik/billing

Billing package for Laravel 5.5 supporting packages, plans, coupons, addons, payments and subscriptions

3021.2k](/packages/ptuchik-billing)[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)

PHPackages © 2026

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