{"id":13803426,"url":"https://github.com/mnsami/composer-custom-directory-installer","last_synced_at":"2025-10-24T00:42:11.579Z","repository":{"id":13853366,"uuid":"16550959","full_name":"mnsami/composer-custom-directory-installer","owner":"mnsami","description":"A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.","archived":false,"fork":false,"pushed_at":"2021-03-22T08:13:03.000Z","size":24,"stargazers_count":136,"open_issues_count":2,"forks_count":27,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-18T19:45:15.451Z","etag":null,"topics":["composer","composer-installer","composer-packages","composer-plugin","flexibility"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/mnsami/composer-custom-directory-installer","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jonmason/ntb","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mnsami.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-02-05T16:44:39.000Z","updated_at":"2024-01-03T16:49:52.000Z","dependencies_parsed_at":"2022-08-22T11:31:22.581Z","dependency_job_id":null,"html_url":"https://github.com/mnsami/composer-custom-directory-installer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnsami%2Fcomposer-custom-directory-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnsami%2Fcomposer-custom-directory-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnsami%2Fcomposer-custom-directory-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnsami%2Fcomposer-custom-directory-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnsami","download_url":"https://codeload.github.com/mnsami/composer-custom-directory-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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":["composer","composer-installer","composer-packages","composer-plugin","flexibility"],"created_at":"2024-08-04T01:00:31.971Z","updated_at":"2025-10-24T00:42:11.573Z","avatar_url":"https://github.com/mnsami.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["Support"],"readme":"composer-custom-directory-installer\n===================================\n\nA composer plugin to install different types of Composer packages in custom directories outside the default `vendor` folder.\n\nThis is not another `composer-installer` library for supporting non-composer package types i.e. `application` .. etc. This is only to add the flexibility of installing composer packages outside the vendor folder. This package only supports `composer` package types,\n\nhttps://getcomposer.org/doc/04-schema.md#type\n\n\u003e The type of the package. It defaults to library.\n\u003e\n\u003e Package types are used for custom installation logic. If you have a package that needs some special logic, you can define a custom type. This could be a symfony-bundle, a wordpress-plugin or a typo3-module. These types will all be specific to certain projects, and they will need to provide an installer capable of installing packages of that type.\n\nHow to use\n----------\n\n- Include the composer plugin into your `composer.json` `require` section::\n\n```\n  \"require\":{\n    \"php\": \"\u003e=5.3\",\n    \"mnsami/composer-custom-directory-installer\": \"1.1.*\",\n    \"monolog/monolog\": \"*\"\n  }\n```\n\n- In the `extra` section define the custom directory you want to the package to be installed in::\n\n```\n  \"extra\":{\n    \"installer-paths\":{\n      \"./monolog/\": [\"monolog/monolog\"]\n      }\n    }\n```\n\n by adding the `installer-paths` part, you are telling composer to install the `monolog` package inside the `monolog` folder in your root directory.\n\n- As an added new feature, we have added more flexibility in defining your download directory same like the `composer/installers`, in other words you can use variables like `{$vendor}` and `{$name}` in your `installer-path` section::\n\n```\n  \"extra\": {\n    \"installer-paths\": {\n      \"./customlibs/{$vendor}/db/{$name}\": [\"doctrine/orm\"]\n    }\n  }\n```\n\nthe above will manage to install the `doctrine/orm` package in the root folder of your project, under `customlibs`.\n\nNote\n----\n\nComposer `type: project` is not supported in this installer, as packages with type `project` only make sense to be used with application shells like `symfony/framework-standard-edition`, to be required by another package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnsami%2Fcomposer-custom-directory-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnsami%2Fcomposer-custom-directory-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnsami%2Fcomposer-custom-directory-installer/lists"}