Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Developing in PHP
  2. Managing dependencies

Managing PHP function dependencies

Written by
Yandex Cloud
Updated at February 10, 2023

Cloud Functions can automatically install dependencies required for a PHP function to run when creating a new function version.

Dependencies are installed by the composer install command that is run in the project root (directory with the function). You can list the required libraries in the following ways:

  • Specify the libraries and their versions in the composer.json file:

    {
      "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 restrictions. For more information, see Quotas and limits in Cloud Functions. You can view the dependency installation log using the link that appears in the list of operations.

Was the article helpful?

Previous
Overview
Next
Request handler
© 2025 Direct Cursus Technology L.L.C.