Where to put the LICENSE file in a symfony application?

I have a web application built using Symfony2 and I want to add my license selection to the repository. The fact is that the Symfony2 project by default has a LICENSE file in the root directory, and I don’t know where I should put my LICENSE file, and if I have to delete Symfony2. Also happens with a README file.

I assume that you Symfony2 programmers know how to handle this.

+6
source share
1 answer

Your own application code should be located mainly in the src folder. If you look at some bundles or other components of Symfony2, you can see that they all have a separate LICENSE file in the root directory of the bundle, so the right choice for your file is:

 src/.../.../LICENSE 

In this case, your LICENSE file LICENSE also be included if you install your kit through the composer in another project. In this case, it will be:

 vendor/.../.../LICENSE 
+1
source

Source: https://habr.com/ru/post/958704/


All Articles