If your project contains others' open source code, where should the licence file be stored?

Source: Internet
Author: User
Tags zend framework
Is the licence file content {code...} where the licence file is stored?

The following is the licence File Content

Copyright (c) 2008 Alan SzlosekPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.

Is it possible to place the licence file somewhere?

Reply content:

The following is the licence File Content

Copyright (c) 2008 Alan SzlosekPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.

Is it possible to place the licence file somewhere?

Thank you for your invitation.
I think you can put it in this way.

Html and pdf.

If you reference third-party open-source software, you can place the copyright file as follows:

  1. Retain the directory structure of the third-party software. Generally, there is a copyright statement file under the root directory.
  2. Copyright descriptions of your software root directory, such as vemplator_license.txt
  3. If you reference a large number of third-party software, you can also create a folder in the root directory of your software to specifically store the copyright files of the open source software you reference.

There is no rigid rule on the location of Open-Source Licenses, but the open-source community has formed some agreements over the years.

Place the LICENCE. TXT file in the source code root directory.

You can check all open-source code, and the license file will be put in this place. The first response from all users who want to find this file is to find this file. And the file names are generally namedLICENCE.TXT.

Declare the open source license in the code file comment

This is also a good habit. When we look at code outside China, they usually have a large segment of copyright statement in the header, sometimes its length even exceeds the Code itself, this is often ridiculed by Chinese people. In fact, this is very necessary. In particular, if your code includes Open-Source Licenses of multiple styles, you can assign appropriate copyright licenses to different modules. For example, php code starts

                                         

As long as it is the copyright that can be distributed, it is okay to put it in the respective directories of third-party libraries like you.

I suggest you refer to the yii framework practice and place the copyright statement in a directory.
Https://github.com/yiisoft/yii/tree/m...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.