Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

tommy-muehle/php-composer-plugin-devenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-composer-plugin-devenv

Development environment to build Composer plugins.
For a full description look at my related blog post.

Requirements

  • Docker
  • Docker-Compose

Install

git clone https://github.com/tommy-muehle/php-composer-plugin-devenv.git composer-plugin-devenv
cd composer-plugin-devenv/plugin
composer install
cd ../
docker-compose build

Usage

Develop your new plugin in the plugin directory. To install the plugin run the following command:

docker-compose run --rm composer global require my/new-plugin

If the plugin is installed you can further develop it. The source are always symlinked to the Composer container.
For example to see your new additional Composer CLI command:

docker-compose run --rm composer new-plugin:sample

You can also customize some global Composer settings in the composer directory if is necessary. And you can also extend the plugin Dockerfile to add PHPUnit or something else.

About

Development environment to build Composer plugins.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages