slogsdon / composer-multi-package-plugin
Facilitates using Composer's path repositories for multi-package / monorepo projects
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- composer-plugin-api: ^1.1
Requires (Dev)
- phpunit/phpunit: ^7.4
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-12-23 10:14:46 UTC
README
Facilitates using Composer's path repositories for multi-package / monorepo projects
Features
- Needs zero configuration
- Needs zero additional tools
Reasoning
Scratches an itch to manage multi-package / monorepo projects easily.
See Lerna for this project's inspiration.
Requirements
Getting Started
Match the following project layout:
project-repository
├── .git
├── .gitignore
├── main-application-or-library
│ ├── composer.json
│ ├── composer.lock
│ ├── src
│ ├── tests
│ └── vendor
└── packages
├── package-a
│ ├── composer.json
│ ├── src
│ └── tests
└── package-b
├── composer.json
├── src
└── tests
project-repository
should contain everything for the entire project including version control bitsmain-application-or-library
should contain the source code for the main application or librarypackages/package-a
andpackages/package-b
should contain the source code for additional packages
Require the package in your application/library:
cd main-application-or-library
composer require slogsdon/composer-multi-package-plugin
Using slogsdon/composer-multi-package-plugin
, main-application-or-library
can require the packages defined in packages/package-a
and packages/package-b
without manually adding those package directories as path
repositories.
License
This project is licensed under the MIT License. See LICENSE for details.