Search code examples
symfonyopen-source

How to test composer package in developpement, like for symfony packages


i am wondering how the contributions on framework like symfony or laravel works.

For example if i clone the symfony repository i'll have the src folder that create the package. And when this package is used there is other folder like in the symfony skeleton.

So how is it possible to develop and test the code without publishing the package ?


Solution

  • You can write tests for the package code and also install the package from your local directory to kind of do the integration testing. Also you can run composer require symfony/package:dev-master#<commit hash> to install specific commit package version.

    This is answer would be helpful: https://stackoverflow.com/a/29995226/4620016