# Croct

Learn how to create the SDK.

The entry point to the SDK, implementing the [`Plug`](/reference/sdk/php/api/core/plug) interface. An instance exposes every operation alongside the static factories below.

> **Type against the interface**
>
> Prefer the [`Plug`](/reference/sdk/php/api/core/plug) interface to `Croct` in your type hints. Coding against the interface keeps your code decoupled from the SDK and easy to test.

> **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:

- [plug](/reference/sdk/php/api/core/croct/plug): Learn how to create and configure the SDK.
- [fromEnvironment](/reference/sdk/php/api/core/croct/from-environment): Learn how to create the SDK from environment variables.
- [fromDotenv](/reference/sdk/php/api/core/croct/from-dotenv): Learn how to create the SDK from a .env file.
- [emitCookies](/reference/sdk/php/api/core/croct/emit-cookies): Learn how to write the session cookies to the response.
