Download the PHP package sensei/partner-sdk without Composer

On this page you can find all versions of the php package sensei/partner-sdk. 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 partner-sdk

Sensei Partner SDK for PHP

Official PHP SDK for the Sensei Partner API. Build integrations with Sensei's complete gamification and user engagement platform.

Requirements

Installation

Authentication: Two Levels

The SDK uses two authentication levels depending on who performs the action:

Auth Type When to Use Resources
API Key Partner/admin operations users.signupAndLink, products, subscriptions, analytics, dashboard
User Token User-owned actions guilds, alliances, messages, trustScore, userStripeConnect

Quick Start

Basic Usage (Without Laravel)

Laravel Integration

The SDK includes full Laravel support with auto-discovery.

Configuration

Publish the config file:

Set your credentials in .env:

Using the Facade

Using Dependency Injection

Available Resources

Products

Manage formations, services, and digital products.

Subscriptions

Manage customer subscriptions.

Users/Customers

Manage your customers and students.

Dashboard & Analytics

Access statistics and generate reports.

Payments

Manage payments, refunds, and invoices.

Stripe Connect

Manage your Stripe Connect integration.

Alliances

Alliances are federations of guilds that can cooperate, share treasuries, and compete in wars.

Trust Score

The Trust Score system allows users to build reputation through weighted voting.

User Stripe Connect (Seller Onboarding)

Allow your tenant's users to become sellers and receive payments for services, events, formations, mentoring, etc.

Important: This resource requires a user token (from signupAndLink or loginAndLink), not the partner API key.

SSO / OAuth 2.0

Enable Single Sign-On for seamless authentication between your platform and Sensei Temple. Implements OAuth 2.0 with mandatory PKCE (RFC 7636) for enhanced security.

SSO Security Best Practices

  1. Always use PKCE - The SDK enforces PKCE with S256 method (mandatory)
  2. Use state parameter - Protect against CSRF attacks
  3. Store tokens securely - Never expose tokens in URLs or logs
  4. Short-lived access tokens - Default 15 min, max 1 hour
  5. Use HTTPS redirect URIs - Required in production
  6. Rotate secrets regularly - Use regenerateSecret() periodically

API Keys

Manage your API keys for integrations.

Webhooks

Configure webhook endpoints.

Compliance (GDPR, Tax)

Handle compliance requirements.

Partner Profile & Settings

Manage your partner profile.

Pagination

The SDK uses cursor-based pagination with a PaginatedResponse helper:

Error Handling

The SDK throws specific exceptions for different error types:

Configuration Options

Or from array:

Testing

For testing, use test mode API keys (sk_test_xxx):

Support

License

MIT License - see LICENSE file for details.


All versions of partner-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
psr/http-message Version ^1.0|^2.0
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 sensei/partner-sdk contains the following files

Loading the files please wait ...