Download the PHP package gosuccess/digistore24-api without Composer

On this page you can find all versions of the php package gosuccess/digistore24-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package digistore24-api

Digistore24 API Client for PHP

Modern, type-safe PHP API client for Digistore24 with PHP 8.4 property hooks and clean architecture.

PHP Version Tests Code Style

Features

Requirements

Installation

Quick Start

Architecture

This wrapper uses a resource-based architecture with typed requests and responses:

Directory Structure

Naming Conventions

Directories:

Classes:

Namespaces:

Architecture Decisions

  1. Singular directories - More consistent with PSR standards
  2. Property hooks - Eliminate constructors where possible
  3. final classes - Not readonly (allow mutation)
  4. Typed constants - Enums instead of magic values
  5. String interpolation - "{$var}" instead of concatenation
  6. Single class per file - Helper classes in separate files
  7. Use imports - Never use fully-qualified class names (FQCN)
  8. Dedicated Enum directory - HttpMethod, StatusCode in Enum/

PHP 8.4 Property Hooks

Property hooks provide automatic validation without constructors:

Benefits:

Usage:

Examples

Simple API Calls (No Request Object Needed)

Many methods with all-optional parameters can now be called without creating a Request object:

Advanced API Calls (With Request Objects for Filters)

When you need filters or custom parameters, use Request objects:

Create Buy URL with Payment Plan

Add Tracking Parameters

Error Handling

Performance

Benchmarks

Performance tests conducted on PHP 8.4.12 with 16GB RAM:

Operation Time Memory Notes
Create Buy URL ~150ms 2.1 MB Including validation
List Products (100 items) ~320ms 4.5 MB With pagination
Get Purchase Details ~95ms 1.8 MB Single request
Batch Operations (10x) ~1.2s 12 MB Parallel requests
Property Hook Validation <1ms Negligible Zero overhead

Key Performance Features:

Rate Limiting & Retry Logic

The client automatically handles Digistore24 API rate limits with exponential backoff:

Retry Strategy:

Status codes with automatic retry:

Status codes WITHOUT retry:

Manual Rate Limit Handling

For fine-grained control, you can implement custom retry logic:

Available Resources

Resource Description Endpoints Status
affiliates Commission management 8 โœ… Complete
billing On-demand invoicing 1 โœ… Complete
buyers Customer information 8 โœ… Complete
buyUrls Order form URL management 3 โœ… Complete
countries Country/region data 2 โœ… Complete
ipns Webhook management 3 โœ… Complete
monitoring Health checks 1 โœ… Complete
products Product management 59 โœ… Complete
purchases Order information 24 โœ… Complete
rebilling Subscription management 4 โœ… Complete
users Authentication 3 โœ… Complete
vouchers Discount codes 6 โœ… Complete
Total 122 โœ… 100%

API Endpoints Documentation

Affiliate Management

Endpoint Documentation
getAffiliateCommission View
updateAffiliateCommission View
getAffiliateForEmail View
setAffiliateForEmail View
getReferringAffiliate View
setReferringAffiliate View
validateAffiliate View
statsAffiliateToplist View

Billing & Invoicing

Endpoint Documentation
createBillingOnDemand View
listInvoices View
resendInvoiceMail View

Buy URL Management

Endpoint Documentation
createBuyUrl View
listBuyUrls View
deleteBuyUrl View

Buyer Management

Endpoint Documentation
getBuyer View
updateBuyer View
listBuyers View
getCustomerToAffiliateBuyerDetails View

Country & Currency

Endpoint Documentation
listCountries View
listCurrencies View

Delivery Management

Endpoint Documentation
getDelivery View
updateDelivery View
listDeliveries View

E-Tickets

Endpoint Documentation
createEticket View
getEticket View
listEtickets View
validateEticket View
getEticketSettings View
listEticketLocations View
listEticketTemplates View

Forms & Custom Data

Endpoint Documentation
listCustomFormRecords View

Images

Endpoint Documentation
createImage View
getImage View
listImages View
deleteImage View

IPN/Webhook Management

Endpoint Documentation
ipnSetup View
ipnInfo View
ipnDelete View

License Keys

Endpoint Documentation
validateLicenseKey View

Marketplace

Endpoint Documentation
getMarketplaceEntry View
listMarketplaceEntries View

Member Access

Endpoint Documentation
listAccountAccess View
logMemberAccess View

Monitoring

Endpoint Documentation
ping View

Order Forms

Endpoint Documentation
createOrderform View
getOrderform View
updateOrderform View
deleteOrderform View
listOrderforms View
getOrderformMetas View

Payment Plans

Endpoint Documentation
createPaymentplan View
updatePaymentplan View
deletePaymentplan View
listPaymentPlans View

Payouts & Commissions

Endpoint Documentation
listPayouts View
listCommissions View

Product Groups

Endpoint Documentation
createProductGroup View
getProductGroup View
updateProductGroup View
deleteProductGroup View
listProductGroups View

Product Management

Endpoint Documentation
createProduct View
getProduct View
updateProduct View
deleteProduct View
copyProduct View
listProducts View
listProductTypes View

Purchase Management

Endpoint Documentation
getPurchase View
updatePurchase View
listPurchases View
listPurchasesOfEmail View
getPurchaseTracking View
addBalanceToPurchase View
createUpgradePurchase View
createAddonChangePurchase View
getPurchaseDownloads View
refundPurchase View
refundPartially View
resendPurchaseConfirmationMail View

Rebilling/Subscriptions

Endpoint Documentation
startRebilling View
stopRebilling View
createRebillingPayment View
listRebillingStatusChanges View

Service Proof

Endpoint Documentation
getServiceProofRequest View
updateServiceProofRequest View
listServiceProofRequests View

Shipping

Endpoint Documentation
createShippingCostPolicy View
getShippingCostPolicy View
updateShippingCostPolicy View
deleteShippingCostPolicy View
listShippingCostPolicies View

Statistics

Endpoint Documentation
statsSales View
statsSalesSummary View
statsDailyAmounts View
statsExpectedPayouts View
statsMarketplace View

Tracking & Conversion

Endpoint Documentation
renderJsTrackingCode View
listConversionTools View

Transactions

Endpoint Documentation
listTransactions View
refundTransaction View
reportFraud View

Upgrades

Endpoint Documentation
createUpgrade View
getUpgrade View
deleteUpgrade View
listUpgrades View
getSmartupgrade View
listSmartUpgrades View

Upsells

Endpoint Documentation
getUpsells View
updateUpsells View
deleteUpsells View

User/API Key Management

Endpoint Documentation
requestApiKey View
retrieveApiKey View
unregister View
getUserInfo View
getGlobalSettings View

Vouchers/Coupons

Endpoint Documentation
createVoucher View
getVoucher View
updateVoucher View
deleteVoucher View
listVouchers View
validateCouponCode View

Migration

Upgrading from gosuccess/php-ds24-api-wrapper? See MIGRATION.md for detailed instructions on namespace changes, constructor updates, and breaking changes.

Testing

The project has comprehensive test coverage with over 1035 tests.

Quality Metrics:

See TESTING.md for detailed testing guide, coverage setup, mutation testing, and best practices.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Development

This library is maintained primarily for GoSuccess's own use. You're welcome to use it, but it isn't run as a community project. To work on it locally:

See DEVELOPER_SETUP.md for detailed IDE setup instructions.

Support


All versions of digistore24-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gosuccess/digistore24-api contains the following files

Loading the files please wait ...