SAP S/4HANA PHP SDK
Build SAP S/4HANA integrations in PHP with Apideck's official SDK. Type-safe, well-documented, and production-ready.
Quick Installation
Get started with SAP S/4HANA in PHP in under a minute
composer require apideck-libraries/sdk-php<?php
require_once 'vendor/autoload.php';
use Apideck\Unify;
use Apideck\Unify\Models\Operations;
$sdk = Unify\Apideck::builder()
->setConsumerId('user-123')
->setAppId('YOUR_APP_ID')
->setSecurity(getenv('APIDECK_API_KEY'))
->build();
// Connections to SAP S/4HANA
$connections = $sdk->vault->connections->list(
api: 'accounting'
);
// List invoices from SAP S/4HANA
$responses = $sdk->accounting->invoices->list(
request: new Operations\AccountingInvoicesAllRequest(
serviceId: 'sap-s4hana-cloud',
),
);
foreach ($responses as $response) {
print_r($response);
}Why use the PHP SDK?
Type Safety
Full type definitions for PHP. Catch errors at compile time, not runtime.
Auto-generated
SDK is auto-generated from our OpenAPI spec, always up-to-date with the latest API.
Error Handling
Built-in error types and retry logic. Handle rate limits and errors gracefully.
Pagination
Automatic pagination handling. Iterate through large datasets effortlessly.
Authentication
OAuth, API keys, and consumer tokens handled automatically.
Documentation
Comprehensive docs with examples for every endpoint and method.
SAP S/4HANA resources available
All these SAP S/4HANA endpoints are accessible via the PHP SDK
More Accounting connectors
We build and maintain connectors, so you don't have to. View our full list of Accounting connectors.
Missing a connector? We're able to add new connectors.
Access Financials
liveAcumatica
liveAFAS Software
liveAlegra
livebanqUP
liveBill.com
upcomingCampfire
liveClear Books
liveDATEV
upcomingDATEV Unternehmen Online
liveDigits
liveDinero
upcomingDualentry
livee-Boekhouden.nl
livee-conomic
liveExact Online
liveExact Online NL
liveExact Online UK
liveFiken
liveFortnox
liveFreeAgent
liveFreshBooks
liveHolded
liveIntuit Enterprise Suite
liveKashflow
liveLexware Office
liveMicrosoft Dynamics 365 Business Central
liveMinox
liveMoneybird
liveMRI Software
liveMYOB
liveMYOB Acumatica
liveNetSuite
liveOdoo
liveOracle Fusion Cloud
livePennylane
liveProcountor
liveQuickBooks
liveQuickBooks Desktop
liveQuickBooks Enterprise
liveRestaurant365
liveRillet
liveSage 50 US
upcomingSage Business Cloud Accounting
liveSage Intacct
liveSage Intacct REST
liveSAP Business One
livesevDesk
liveSnelStart
liveSpiris
liveStripe
liveTripletex
liveTwinfield
liveVisma eAccounting
liveVisma Netvisor
liveWafeq
liveWave
liveWorkday
liveXero
liveYuki
liveZoho Books
liveIntuit Bank Feeds
Request accessPlaid Core Exchange
Request access