Croct

Learn how to create the SDK.

The entry point to the SDK, implementing the Plug interface. An instance exposes every operation alongside the static factories below.

Croct's mascot winking
Type against the interface

Prefer the Plug interface to Croct in your type hints. Coding against the interface keeps your code decoupled from the SDK and easy to test.

Croct's mascot winking
Looking for something specific?

Use the search bar at the top of the page or press / to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

PageDescription
plugLearn how to create and configure the SDK.
fromEnvironmentLearn how to create the SDK from environment variables.
fromDotenvLearn how to create the SDK from a .env file.
emitCookiesLearn how to write the session cookies to the response.