[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Functions](../../index.md) > [Developing in PHP](index.md) > Managing dependencies

# Managing PHP function dependencies

Cloud Functions can automatically install dependencies required for a PHP function when creating a new [function version](../../operations/function/version-manage.md).

To install dependencies, use the `composer install` command that runs in the project root (function directory). You can list the required libraries in the following ways:
* Specify the libraries and their versions in the `composer.json` file:

  ```json
  {
    "require": {
      "guzzlehttp/guzzle": "~6.0",
      "ext-json": "*"
    }
  }
  ```
* Run the `composer require <library>` command in the project root. This adds the library to the `composer.json` file and installs it to the `vendor` directory.

The dependency installation process has some technical limitations. For more information, see [Quotas and limits in Cloud Functions](../../concepts/limits.md). You can view the dependency installation log via the link displayed in the list of operations.