如何建立捆绑依赖项?

So I'm on my way to want to release my very first symfony bundle and I want to add the composer.json file that states the information about the bundles it depends on. I know I have some dependencies on doctrine/common and the doctrine orm bundle but I am not sure what is the minimal and/or the maximal version of these bundle my code will support. Is there a way to test this? (the same question would go for the php version. It works in php 5.3 but I didn't test it on all versions)

You can check php requirements of any vendor in its composer.json file. Check composer.json for doctrine/common that you want to use. example:

https://github.com/doctrine/common/blob/master/composer.json

this vendor will work with php 5.5

if Your bundle will support lower version of php then you have to look for previous version of this vendor