/home/kueuepay/public_html/vendor/maennchen/zipstream-php/guides/StreamOutput.rst
Stream Output
===============

Stream to S3 Bucket
---------------

.. code-block:: php
    use Aws\S3\S3Client;
    use Aws\Credentials\CredentialProvider;
    use ZipStream\Option\Archive;
    use ZipStream\ZipStream;

    $bucket = 'your bucket name';
    $client = new S3Client([
        'region' => 'your region',
        'version' => 'latest',
        'bucketName' => $bucket,
        'credentials' => CredentialProvider::defaultProvider(),
    ]);
    $client->registerStreamWrapper();

    $zipFile = fopen("s3://$bucket/example.zip", 'w');

    $options = new Archive();
    $options->setEnableZip64(false);
    $options->setOutputStream($zipFile);

    $zip = new ZipStream(null, $options);
    $zip->addFile('file1.txt', 'File1 data');
    $zip->addFile('file2.txt', 'File2 data');
    $zip->finish();

    fclose($zipFile);
Developer

Kueue Pay Payment Gateway Solutions Developer API Documentation

Welcome to the Kueue Pay Payment Gateway Solutions Developer API Documentation. This comprehensive guide will empower you to seamlessly integrate our advanced payment gateway into your website, enhancing your customers’ payment experience and enabling efficient transaction processing. The Kueue Pay Developer API is designed for developers and entrepreneurs who seek simplicity, security, and reliability in their payment processing solutions.

1. Introduction

The Kueue Pay Developer API allows you to seamlessly integrate Kueue Pay’s Payment Gateway Solutions into your website, enabling secure and efficient debit and credit card transactions. With our API, you can initiate payments, check payment statuses, and even process refunds, all while ensuring a smooth and streamlined payment experience for your customers.