Download the PHP package nickmoline/stytch-php without Composer

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

Stytch PHP Library

Packagist Version codecov

Unofficial PHP SDK for Stytch based on the Official Stytch Node.js Library.

Installation

Requirements

Usage

You can find your API credentials in the Stytch Dashboard.

Basic Setup

B2B Features

This library currently supports the following B2B features:

B2C Features

This library currently supports the following B2C features:

Object-Based Responses

The library returns proper PHP objects instead of raw arrays, providing better type safety and IDE support. All responses include a request_id and status_code for debugging purposes.

Note: B2B responses return structured objects, while B2C responses return arrays. This difference reflects the underlying API structure.

Carbon Date Handling

All date and time fields from the Stytch API are automatically converted to Carbon instances, providing rich date manipulation capabilities:

Available Carbon date fields:

Implementation Details:

The library uses a HasCarbonDates trait to handle date parsing consistently across all object classes. This trait provides:

This approach ensures consistent date handling and reduces code duplication throughout the library.

B2B Response Format (Object-based)

B2C Response Format (Array-based)

B2B Examples

Create an Organization

Get an Organization

Update an Organization

Delete an Organization

Search Organizations

Send Magic Link for Login/Signup

Authenticate Magic Link

Authenticate Session

Get Session

Revoke Session

Password Authentication

Password Strength Check

OAuth Authentication

Send SMS OTP

Authenticate SMS OTP

Send Email OTP

Authenticate Email OTP

Create TOTP

Authenticate TOTP

Get Recovery Codes

Recover with Recovery Code

Discovery - List Organizations

Discovery - Create Organization

Discovery - Get Organization

Discovery - Update Organization

Discovery - Delete Organization

SSO Authentication

Get SSO Connections

Delete SSO Connection

SCIM Connection Management

IDP Token Introspection

IDP - Get Token

Impersonation - Authenticate

RBAC Policy


All versions of stytch-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-curl Version *
guzzlehttp/psr7 Version ^2.7
guzzlehttp/guzzle Version ^7.0
nesbot/carbon Version ^3.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 nickmoline/stytch-php contains the following files

Loading the files please wait ....