PHPackages                             flute/sdk - 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. [API Development](/categories/api)
4. /
5. flute/sdk

ActiveLibrary[API Development](/categories/api)

flute/sdk
=========

Official PHP SDK for the Flute payment platform.

v1.0.0(1mo ago)111[1 PRs](https://github.com/getflute/flute-sdk-php/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jul 10Pushed 1mo agoCompare

[ Source](https://github.com/getflute/flute-sdk-php)[ Packagist](https://packagist.org/packages/flute/sdk)[ Docs](https://developer.flute.com)[ RSS](/packages/flute-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Flute PHP SDK
=============

[](#flute-php-sdk)

Official **server-side** PHP SDK for the [Flute](https://developer.flute.com) payment platform.

> **Server-side only.** The SDK uses an OAuth client secret. Never ship it to a browser, mobile app, or any environment an end user can inspect.

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

[](#requirements)

- PHP 8.1+
- Composer

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

[](#installation)

```
composer require flute/sdk
```

Quick Start: Authenticate and Run a Sale
----------------------------------------

[](#quick-start-authenticate-and-run-a-sale)

Authentication is automatic — the SDK acquires a bearer token on the first API call and refreshes it as needed. Credentials come from your Flute merchant dashboard.

```
