{"id":29017870,"url":"https://github.com/cakephp/plugin-installer","last_synced_at":"2026-04-10T06:01:47.002Z","repository":{"id":20058252,"uuid":"23326846","full_name":"cakephp/plugin-installer","owner":"cakephp","description":"A composer installer for installing CakePHP plugins.","archived":false,"fork":false,"pushed_at":"2025-01-05T10:49:29.000Z","size":162,"stargazers_count":32,"open_issues_count":1,"forks_count":18,"subscribers_count":25,"default_branch":"2.x","last_synced_at":"2025-01-05T11:27:51.446Z","etag":null,"topics":["cakephp","composer-plugin","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-25T20:00:51.000Z","updated_at":"2024-11-17T18:01:25.000Z","dependencies_parsed_at":"2024-11-18T01:00:32.806Z","dependency_job_id":null,"html_url":"https://github.com/cakephp/plugin-installer","commit_stats":{"total_commits":140,"total_committers":21,"mean_commits":6.666666666666667,"dds":0.6714285714285715,"last_synced_commit":"bdf40112dca61cbeaa4aacb439d31630249845dc"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/cakephp/plugin-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fplugin-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fplugin-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fplugin-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fplugin-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakephp","download_url":"https://codeload.github.com/cakephp/plugin-installer/tar.gz/refs/heads/2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Fplugin-installer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261967132,"owners_count":23237663,"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":["cakephp","composer-plugin","php"],"created_at":"2025-06-25T23:07:17.464Z","updated_at":"2026-04-10T06:01:46.993Z","avatar_url":"https://github.com/cakephp.png","language":"PHP","readme":"# CakePHP Plugin Installer\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/cakephp/plugin-installer/ci.yml?style=flat-square)](https://github.com/cakephp/plugin-installer/actions/workflows/ci.yml)\n[![Latest Stable Version](https://img.shields.io/github/v/release/cakephp/plugin-installer?sort=semver\u0026style=flat-square)](https://packagist.org/packages/cakephp/plugin-installer)\n[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/plugin-installer?style=flat-square)](https://packagist.org/packages/cakephp/plugin-installer/stats)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\nA composer installer for installing CakePHP plugins.\n\nThis installer ensures your application is aware of CakePHP plugins installed\nby composer in `vendor/`.\n\n## Usage\n\nYour CakePHP application should already depend on `cakephp/plugin-installer`, if\nnot in your CakePHP application run:\n\n```\ncomposer require cakephp/plugin-installer:*\n```\n\nYour plugins themselves do **not** need to require `cakephp/plugin-installer`. They\nonly need to specify the `type` in their composer config:\n\n```json\n\"type\": \"cakephp-plugin\"\n```\n\n## Multiple Plugin Paths\n\nIf your application uses multiple plugin paths. In addition to configuring your\napplication settings you will also need to update your `composer.json` to ensure\nthe generated `cakephp-plugins.php` file is correct:\n\n```\n// Define the list of plugin-paths your application uses.\n\"extra\": {\n    \"plugin-paths\": [\"plugins\", \"extra_plugins\"]\n}\n```\n\n## Plugin Setup\n\nFor the installer to work properly ensure that your plugin's composer config\nfile has a proper autoload section. Assuming your plugin's namespace is \"MyPlugin\"\nthe autoload section would be like:\n\n```json\n\"autoload\": {\n    \"psr-4\": {\n        \"MyPlugin\\\\\": \"src/\"\n    }\n}\n```\n\nNot strictly necessary for the working of the installer but ideally you would\nalso have an \"autoload-dev\" section for loading test files:\n\n```json\n\"autoload\": {\n    \"psr-4\": {\n        \"MyPlugin\\\\\": \"src/\"\n    }\n},\n\"autoload-dev\": {\n    \"psr-4\": {\n        \"MyPlugin\\\\Test\\\\\": \"tests/\",\n        \"Cake\\\\Test\\\\\" : \"vendor/cakephp/cakephp/tests/\"\n    }\n}\n```\n\nIf your top level namespace is a vendor name then your namespace to path mapping\nwould be like:\n\n```json\n\"autoload\": {\n    \"psr-4\": {\n        \"MyVendor\\\\MyPlugin\\\\\": \"src/\"\n    }\n},\n\"autoload-dev\": {\n    \"psr-4\": {\n        \"MyVendor\\\\MyPlugin\\\\Test\\\\\": \"tests/\",\n        \"Cake\\\\Test\\\\\" : \"vendor/cakephp/cakephp/tests/\"\n    }\n}\n```\n\n## Generating Manually\n\nIf you need to generate `cakephp-plugins.php` separately, you can simply run the `dumpautoload` command:\n\n```\ncomposer dumpautoload\n```\n\nYou cannot use `--no-scripts` with `dumpautoload` or `cakephp-plugins.php` will not generate.\n\nIf you don't want to re-generate the entire autoload dump, you can run just the scripts:\n\n```\ncomposer run-script post-autoload-dump\n```\n\nPlease see [composer documentation](https://getcomposer.org/doc/03-cli.md#dump-autoload-dumpautoload-) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Fplugin-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakephp%2Fplugin-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Fplugin-installer/lists"}