Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put the LICENSE file in a Symfony application?

I have a web application made with Symfony2 and I want to add my license choice in the repository. The thing is that the default Symfony2 project has a LICENSE file in the root directory and I don't know where I am supposed to put my LICENSE file and if I should delete the Symfony2's one. Also happens with README file.

I guess that you Symfony2 programmers sure know how to handle this.

like image 534
Manolo Avatar asked Nov 23 '13 20:11

Manolo


1 Answers

Your own application code should be located mostly in the src folder. If you take a look at some Bundles or other components of Symfony2 you can see that they all have a separate LICENSE file in their bundle root directory. So the correct choice for your file would be:

src/.../.../LICENSE

In this case your LICENSE file would also be included if you install your bundle via composer on a different project. In that case it would be at:

vendor/.../.../LICENSE
like image 179
ferdynator Avatar answered Oct 18 '22 06:10

ferdynator