{"id":30365686,"url":"https://github.com/syntaxc4-msft/composerextension","last_synced_at":"2025-09-12T06:47:20.141Z","repository":{"id":22003929,"uuid":"25329073","full_name":"SyntaxC4-MSFT/ComposerExtension","owner":"SyntaxC4-MSFT","description":"Brings Composer Support to Azure Websites via a Site Extension","archived":false,"fork":false,"pushed_at":"2022-08-01T19:50:12.000Z","size":135,"stargazers_count":15,"open_issues_count":3,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-19T11:28:58.839Z","etag":null,"topics":["azure","composer","php"],"latest_commit_sha":null,"homepage":"http://www.siteextensions.net","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyntaxC4-MSFT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-17T00:22:34.000Z","updated_at":"2023-06-06T09:52:13.000Z","dependencies_parsed_at":"2022-08-07T10:01:26.057Z","dependency_job_id":null,"html_url":"https://github.com/SyntaxC4-MSFT/ComposerExtension","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/SyntaxC4-MSFT/ComposerExtension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxC4-MSFT%2FComposerExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxC4-MSFT%2FComposerExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxC4-MSFT%2FComposerExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxC4-MSFT%2FComposerExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyntaxC4-MSFT","download_url":"https://codeload.github.com/SyntaxC4-MSFT/ComposerExtension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyntaxC4-MSFT%2FComposerExtension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271226850,"owners_count":24722488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","composer","php"],"created_at":"2025-08-19T21:28:29.171Z","updated_at":"2025-08-19T21:28:32.738Z","avatar_url":"https://github.com/SyntaxC4-MSFT.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/platform-Azure-00abec.svg?style=flat-square)\n![](https://img.shields.io/badge/PHP-5.4%2C%205.5%2C%205.6-4F5B93.svg?style=flat-square)\n![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)\n\n# Azure App Service Web App Composer Site Extension\n\nThis site extension adds [Composer](http://getcomposer.org) support to Web App to enable dependency management for PHP applications.\n\n## Installation\n\nFollow the instructions outlined in the article [How to enable a Site Extension in Azure App Service Web App](http://blog.syntaxc4.net/post/2015/02/05/how-to-enable-a-site-extension-in-azure-websites.aspx) when selecting an extension look for the list item for [Composer](http://www.siteextensions.net/packages/ComposerExtension/).\n\n## Usage\n\nThere are multiple ways to use Composer from Web App.\n\n### Continuous Deployment\n\nThis [sample application](https://github.com/SyntaxC4-MSFT/WAWS-Composer) demonstrates the usage of the `composer.json` file in Web App.\n\n* Place a `composer.json` file in the root of your repository\n* vendor folder will be created in `d:\\home\\site\\wwwroot\\vendor` (there is a rewrite rule enabled in the extension to protect against public access to the `vendor` folder)\n* reference to the autoload.php file `require_once \"vendor/autoload.php\";`\n\n### Command-Line\n\n* Open the Kudu Debug Console (http://\u0026lt;site-name\u0026gt;.scm.azurewebsites.net/DebugConsole) or Install [KuduExec](https://github.com/projectkudu/kuduexec)\n* run composer from the command line `composer selfupdate`\n\n### Timeout configuration\n\nIn some cases (especially when attempting to install great amount of packages, [#1](https://github.com/SyntaxC4-MSFT/ComposerExtension/issues/1)) the deployment may timeout and the dependencies won't get loaded correctly by Composer. A simple fix is to add a [deployment configuration](https://github.com/projectkudu/kudu/wiki/Customizing-deployments) (create `.deployment` file) with parameter [**SCM_COMMAND_IDLE_TIMEOUT**](https://github.com/projectkudu/kudu/wiki/Configurable-settings) and set it to bigger number (for example `SCM_COMMAND_IDLE_TIMEOUT=600` where 600 is time out in seconds). The default value in Azure Web Apps for this setting appears to be 400 seconds.\n\n## AppSettings\n\n| Name                | Value                                 |Notes                                     |\n|---------------------|---------------------------------------|------------------------------------------|\n| APPSETTING_COMMAND  | %XDT_EXTENSIONPATH%\\Hooks\\deploy.cmd  | Deployment Hook Command.                 |\n| PATH                | %PATH%;%XDT_EXTENSIONPATH%\\Commands;%APPDATA%\\Composer\\vendor\\bin   | Overwrites the Path. Last Extension Wins |\n| COMPOSER_ARGS       | --prefer-dist --no-dev --optimize-autoloader --no-progress  |  Command line arguments for composer during deploy.cmd execution |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxc4-msft%2Fcomposerextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntaxc4-msft%2Fcomposerextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxc4-msft%2Fcomposerextension/lists"}