Skip to content

Instantly share code, notes, and snippets.

@chrisvogt
Created March 9, 2013 22:22
Show Gist options
  • Select an option

  • Save chrisvogt/5126023 to your computer and use it in GitHub Desktop.

Select an option

Save chrisvogt/5126023 to your computer and use it in GitHub Desktop.
A PHP comment style guide.
<?php // app/controllers/really_awesome_controller.php
/**
* Awesome Controller Name
*
* This does something really awesome, and nifty too!
*
* @package CakePHP
* @subpackage Super-Cool-Application
* @author Chris Vogt ([email protected])
* @since 1.1.4
*/
#### Dividers
## Major Divider with section name
/* ▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀
*
* :actions
*/
## Small, kind of wonky divider
/* _,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.._ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment