2017 © Pedro Peláez
 

library php-docbloc

PHP docBloc - Generate and keep updated docBlock of your project files fetching details from composer.json and Git. Supported filetypes: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR need to be installed to use this tool).

image

intrd/php-docbloc

PHP docBloc - Generate and keep updated docBlock of your project files fetching details from composer.json and Git. Supported filetypes: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR need to be installed to use this tool).

  • Friday, January 20, 2017
  • by intrd
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

docBloc - Generate and keep updated docBlock of your project files fetching details from composer.json and Git data. Supported filetypes: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR needed to use this tool)., (*1)

Package intrd/docbloc
Version 1.1
Tags docblock, documentation, tool
Project URL http://github.com/intrd/docbloc
Author intrd (Danilo Salles) - http://dann.com.br
Copyright (CC-BY-SA-4.0) 2016, intrd
License Creative Commons Attribution-ShareAlike 4.0
Dependencies • php >=5.3.0

, (*2)

php-auto-docbloc, (*3)

Composer.json sample

docBloc fetch your project details from composer.json. If your project still does not have one, create it following sample below and put at your project root path., (*4)

{
    "name": "intrd/docbloc",
    "description": "PHP docBloc - Generate and keep updated docBlock of your project files fetching details from composer.json and Git. Supported filetypes: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR need to be installed to use this tool).",
    "keywords": ["php","docblock","documentation","tool"],
    "homepage": "http://github.com/intrd/docbloc",
    "authors": [
            {
                "name": "intrd (Danilo Salles)",
                "email": "x@dann.com.br",
                "homepage": "http://dann.com.br",
                "role": "Developer"
            }
        ],
    "license": "CC-BY-SA-4.0",
    "require": {
        "php": ">=5.3.0"
    },
    "autoload": {
        "psr-4": {
            "php\\":"src/"
        }
    },
    "extra": {
        "author_twitter":"intrd",
        "copyright_author":"intrd",
        "license_title":"Creative Commons Attribution-ShareAlike 4.0",
        "license_url":"http://creativecommons.org/licenses/by-sa/4.0"
    }
}

Docbloc triggers

Each filetype have your own trigger, put this in the header of files that you want to docBloc manage., (*5)

PHP - Script, (*6)

/** @docbloc **/

INI - Configuration file, (*7)

;; @docbloc ;;

SH - Shell script, (*8)

## @docbloc ##

BAT - Batch script, (*9)

REM @docbloc REM

MD - Markdown files like README.md, (*10)

<!-- @docbloc -->

Git details

(optional) I recommend you to control the versioning of your project by Git branch name. It's optional, but docbloc fetch version from .git/HEAD. If your project are not gitted, docbloc will not display the Version field at files., (*11)

Usage

Considering that you already have: - PHP working - Created/edited your composer.json - Filled all files w/ the correct docBloc trigger - (optional) a working .git/HEAD, (*12)

Now go to your project root and run:, (*13)

$ wget -O docbloc.php https://raw.githubusercontent.com/intrd/docbloc/1.1/src/docbloc.php && php docbloc.php && rm docbloc.php

running-docbloc, (*14)

It will download docbloc.php script, run and remove it., (*15)

Done, Every time you change any project detail at composer.json or create a new git branch version, simply run docBloc again to keep all your files docbloc header updated. Yes, it works recursively on upper directory levels too., (*16)

The Versions

20/01 2017

1.1.x-dev

1.1.9999999.9999999-dev http://github.com/intrd/php-docbloc

PHP docBloc - Generate and keep updated docBlock of your project files fetching details from composer.json and Git. Supported filetypes: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR need to be installed to use this tool).

  Sources   Download

CC-BY-SA-4.0

The Requires

  • php >=5.3.0

 

php documentation docblock tool

19/05 2016

1.0.x-dev

1.0.9999999.9999999-dev http://github.com/intrd/php-docbloc

PHP DocBloc - Generate and keep updated DocBlock of your project files fetching details from composer.json and Git. Supported formats: *.php, *.ini, *.sh, *.bat, *.md (No Composer or PEAR need to be installed to use this tool).

  Sources   Download

CC-BY-SA-4.0

The Requires

  • php >=5.3.0

 

php documentation docblock tool