<?php
namespace Buglinjo\LaravelWebp;
use Buglinjo\LaravelWebp\Exceptions\DriverIsNotSupportedException;
use Illuminate\Support\Facades\Config;
use Illuminate\Http\UploadedFile;
class Webp
{
/**
* @param UploadedFile $image
* @return Cwebp|PhpGD|Traits\WebpTrait|null
* @throws DriverIsNotSupportedException
*/
public static function make(UploadedFile $image)
{
$driver = Config::get('laravel-webp.default_driver');
$availableDrivers = Config::get('laravel-webp.drivers');
if (!in_array($driver, array_keys($availableDrivers))) {
throw new DriverIsNotSupportedException($driver);
}
switch ($driver) {
case 'php-gd':
return (new PhpGD())->make($image);
case 'cwebp':
return (new Cwebp())->make($image);
}
return null;
}
}
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.
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.