{"id":28317765,"url":"https://github.com/matchory/php-composer-action","last_synced_at":"2026-02-02T07:03:34.231Z","repository":{"id":292372963,"uuid":"980697340","full_name":"matchory/php-composer-action","owner":"matchory","description":"A GitHub Action to run composer commands.","archived":false,"fork":false,"pushed_at":"2025-05-09T15:56:41.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T15:44:02.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/matchory.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-09T14:59:06.000Z","updated_at":"2025-06-14T09:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c187b6af-57de-4b45-9ade-b3c19855685d","html_url":"https://github.com/matchory/php-composer-action","commit_stats":null,"previous_names":["matchory/php-composer-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/matchory/php-composer-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matchory%2Fphp-composer-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matchory%2Fphp-composer-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matchory%2Fphp-composer-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matchory%2Fphp-composer-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matchory","download_url":"https://codeload.github.com/matchory/php-composer-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matchory%2Fphp-composer-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262647173,"owners_count":23342607,"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","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":[],"created_at":"2025-05-25T06:12:39.999Z","updated_at":"2026-02-02T07:03:29.177Z","avatar_url":"https://github.com/matchory.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Composer Action\n===============\nAn action to run [composer](https://getcomposer.org/) commands in a GitHub Actions workflow.\n\n## Usage\n\nThis action can be used to run any composer command. By default, it runs `composer install` with sensible configuration\nout of the box:\n\n```yaml\nname: Composer Action Example\non: [ push ]\n\njobs:\n  composer:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Run Composer Action\n        uses: actions/composer-action@v1\n```\n\nYou can also specify a different command to run by using the `args` input:\n\n```yaml\nname: Composer Action Example\non: [ push ]\n\njobs:\n  composer:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n\n      - name: Run Composer Action\n        uses: actions/composer-action@v1\n        with:\n          args: outdated --direct --format=json\n```\n\n## Configuration\n\n### Inputs\n\nThe action has some common inputs:\n\n| Input               | Description                                                                                                                                                               | Required | Default   |\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-----------|\n| `args`              | Arguments to pass to composer. Accepts any valid Composer command args. If `install` (the default) or `update`, it will run the command with the configured option flags. | No       | `install` |\n| `verbosity`         | Set the verbosity level. Must be one of: `normal`, `quiet`, `verbose`, `very`verbose\", or `debug`.                                                                        | No       | `normal`  |\n| `working-directory` | The working directory to run the command in.                                                                                                                              | No       | —         |\n| `no-plugins`        | Whether to disable plugins.                                                                                                                                               | No       | `false`   |\n| `no-scripts`        | Skips the execution of all scripts defined in `composer.json`.                                                                                                            | No       | `false`   |\n\nIt also provides additional convenience inputs that will only be applied with the `install` and `update` commands:\n\n| Input                     | Description                                                                                                                                                                         | Required | Default         |\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-----------------|\n| `prefer`                  | Specify package source preference. Must be one of: `auto`, `dist`, or `source`.                                                                                                     | No       | `auto`          |\n| `no-dev`                  | Disables installation of require-dev packages.                                                                                                                                      | No       | `false`         |\n| `autoloader`              | Configures autoloader generation. Must be one of: `true`, `false`, `optimize`, `classma`\",`or `apcu`.                                                                               | No       | `optimize`      |\n| `audit`                   | Run an audit after installation is complete. Also takes an audit format name. Must be one of: `true` (equivalent to `summary`), `false`, `table`, or `plain`, `json`, or `summary`. | No       | `false`         |\n| `ignore-platform-reqs`    | Ignore platform requirements. Must be one of: `true`, `false`, or a comma-separated list of platform requirements to ignore.                                                        | No       | `false`         |\n| `cache`                   | Whether to use cache.                                                                                                                                                               | No       | `true`          |\n| `artifact`                | Name of generated vendor artifact.                                                                                                                                                  | No       | —               |\n| `artifact-path`           | Path of generated vendor artifact.                                                                                                                                                  | No       | `vendor.tar.gz` |\n| `artifact-retention-days` | Number of days that the vendor artifact should be retained for.                                                                                                                     | No       | `7`             |\n\nSome of the inputs are described in detail below.\n\n### Outputs\n\n| Output               | Description                            |\n|----------------------|----------------------------------------|\n| `artifact`           | Name of the generated vendor artifact. |\n| `artifact-path`      | Path of generated vendor artifact.     |\n| `composer-cache-dir` | Composer cache directory.              |\n\n### Autoloader Generation\n\nAutoloader generation is enabled by default. You can configure this by setting the `autoloader` input to one of the\nfollowing values:\n\n- `true` - Generates the autoloader without optimizations (composer's default behavior).\n- `false` - Disables autoloader generation (equivalent to passing `no-autoloader` to composer).\n- `optimize` - Generates\n  an [optimized](https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-1-class-map-generation)\n  autoloader.\n- `classmap` - Generates\n  an [authoritative class map](https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-2-a-authoritative-class-maps)\n  autoloader.\n- `apcu` - Generates\n  an [APCu](https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-3-apcu) autoloader.\n\nRefer to the [Composer documentation](https://getcomposer.org/doc/articles/autoloader-optimization.md) for more details\non autoloader generation and optimization levels.\n\n### Audit\n\nThe action can run an audit after installation is complete. This is enabled by setting the `audit` input to one of the\nfollowing values:\n\n- `true` - Equivalent to `summary`.\n- `false` - Disables audit.\n- `table` - Displays audit results in a table format.\n- `plain` - Displays audit results in a plain text format.\n- `json` - Displays audit results in a JSON format.\n- `summary` - Displays audit results in a summary format.\n\nThis combines the `--audit` and `--audit-format` options. The default value is `false`, which disables the audit.  \nWhen enabled. The action will fail if the audit finds any issues.\n\n### Ignoring Platform Requirements\n\nThe action can configure composer to ignore (some) platform requirements. This is enabled by setting the\n`ignore-platform-reqs` input to one of the following values:\n- `true` - Ignores all platform requirements.\n- `false` - Does not ignore any platform requirements (composer's default behavior).\n- `\u003ccomma-separated list\u003e` - Ignores the specified platform requirements. This can be a comma-separated list of\n  platform requirements to ignore, such as `ext-curl,ext-json`.\n\nRefer to the [Composer documentation](https://getcomposer.org/doc/06-config.md#platform) for more\n\n### Cache\n\nThe action can use a cache to speed up installation. This is enabled by setting the `cache` input to `true` (default)\nor `false`. If enabled, the action will use the cache directory specified by the `COMPOSER_CACHE_DIR` environment\nvariable. If this variable is not set, the action will use the default cache directory for Composer, which is\n`$HOME/.composer/cache` on Linux and macOS, and `%LOCALAPPDATA%/Composer/cache` on Windows.\n\n### Artifact\n\nThe action can generate an artifact from the compressed vendor folder. This is enabled by setting the `artifact` input\nto `true`. The archive will be generated in the working directory and will be named `vendor.tar.gz` by default.  \nYou can change the name of the artifact by setting the `artifact-path` input to a different path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatchory%2Fphp-composer-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatchory%2Fphp-composer-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatchory%2Fphp-composer-action/lists"}