> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. # Adding custom code > Learn how to add custom logic, methods, and dependencies to your PHP SDK. Step-by-step guide to extending Fern-generated PHP clients. #### Enterprise feature This feature is available only for the [Enterprise plan](https://buildwithfern.com/pricing). To get started, reach out to [support@buildwithfern.com](mailto:support@buildwithfern.com). This page covers how to add custom logic, methods, and dependencies to your PHP SDK. ## Adding custom logic To get started adding custom code: These steps cover adding a new custom file to the SDK. To preserve line-level edits to a generated file, use [Replay](/learn/sdks/overview/custom-code#replay) instead. #### Create a new file and add your custom logic **`src/Helper.php`** ```php title="src/Helper.php" myHelper(); ``` ## Adding custom dependencies To add packages that your custom code requires, update your `generators.yml` using the `composerJson` configuration option. **`generators.yml`** ```yaml {4-8} title="generators.yml" - name: fern-php-sdk version: 2.21.0 config: composerJson: require: guzzlehttp/guzzle: "^7.0" require-dev: phpunit/phpunit: "^10.0" ``` > Learn how to add custom logic, methods, and dependencies to your PHP SDK. Step-by-step guide to extending Fern-generated PHP clients.