LoginSignup
8
8

More than 5 years have passed since last update.

ソースコードのヘッダコメントブロック例

Posted at

ソースコードを書く時、とりあえず埋め込んどくべきかと思ったので
自分用に簡略化して整理。PEARの例を参考にしました。

/**
 * Short description for file
 *
 * Long description for file (if any)...
 *
 * PHP versions 4 and 5
 *
 * @category   CategoryName
 * @package    PackageName
 * @author     Hogehoge <hoge@hoge.com>
 * @copyright  2010-2013 Hogehoge
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    0.1
**/

解説

  • PHPのバージョンや@category, @packageは必要に応じて。
  • ライセンスは基本、MITで。ちゃんと全文載せる場合はこちらをコピペで。
  • その他の項目やライセンスについては、PEARの例を参照のこと。

参考・引用

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8