PHPackages                             wiopayments/php-sdk-vanilla - 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. wiopayments/php-sdk-vanilla

ActiveLibrary[Payment Processing](/categories/payments)

wiopayments/php-sdk-vanilla
===========================

WioPayments Gateway PHP SDK - Vanilla PHP Version (No Dependencies)

v1.0.0(11mo ago)01MITPHPPHP &gt;=7.4CI failing

Since May 28Pushed 11mo agoCompare

[ Source](https://github.com/WioPayments/agent-php-vanilla)[ Packagist](https://packagist.org/packages/wiopayments/php-sdk-vanilla)[ Docs](https://wiopayments.com)[ RSS](/packages/wiopayments-php-sdk-vanilla/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

WioPayments PHP SDK - Vanilla PHP Version
=========================================

[](#wiopayments-php-sdk---vanilla-php-version)

A standalone PHP library for integrating with WioPayments Gateway. **No dependencies required** - works with any PHP project without Composer or external libraries.

🚀 Quick Start
-------------

[](#-quick-start)

### 1. Download and Include

[](#1-download-and-include)

```
// Simply include the main SDK file
require_once 'WioPayments.php';

// Initialize with your API key
$wioPayments = new WioPayments('your_api_key_here');
```

### 2. Create a Simple Payment

[](#2-create-a-simple-payment)

```
// Create payment data
$paymentData = [
    'amount' => 50.00,
    'currency' => 'USD',
    'order_id' => 'ORDER_' . uniqid(),
    'customer' => [
        'name' => 'John Doe',
        'email' => 'john@example.com'
    ]
];

// Create payment and get client secret
$payment = $wioPayments->createPayment($paymentData);

// Generate complete payment form
$paymentForm = $wioPayments->renderPaymentForm($paymentData);
file_put_contents('payment.html', $paymentForm);
```

### 3. Check Payment Status

[](#3-check-payment-status)

```
$status = $wioPayments->getPaymentStatus($payment->id);
echo "Payment status: " . $status->status;
```

📋 Features
----------

[](#-features)

- ✅ **Zero Dependencies** - Pure PHP, no Composer required
- ✅ **Complete Payment Forms** - Ready-to-use HTML with Stripe integration
- ✅ **Hosted Payment Pages** - Redirect customers to secure payment pages
- ✅ **Payment Links** - Create shareable payment URLs
- ✅ **JavaScript Integration** - Add payments to existing pages
- ✅ **Multi-Currency Support** - USD, EUR, TRY, GBP
- ✅ **Real-time Status** - Check payment status anytime
- ✅ **Customizable UI** - Custom CSS and styling options

🛠️ Installation Methods
-----------------------

[](#️-installation-methods)

### Method 1: Direct Download (Recommended)

[](#method-1-direct-download-recommended)

```
# Download the single file
wget https://github.com/WioPayments/agent-php-vanilla/archive/refs/tags/v1.0.0.zip
```

### Method 2: Copy and Paste

[](#method-2-copy-and-paste)

Simply copy the `WioPayments.php` file to your project directory.

### Method 3: Include in Existing Projects

[](#method-3-include-in-existing-projects)

```
// Add to your existing PHP application
include_once '/path/to/WioPayments.php';
```

📚 Usage Examples
----------------

[](#-usage-examples)

### Complete Payment Form

[](#complete-payment-form)

```
