2017 © Pedro Peláez
 

library pocco

The PHP documentation generator (A Docco clone)

image

xeoncross/pocco

The PHP documentation generator (A Docco clone)

  • Thursday, July 25, 2013
  • by Xeoncross
  • Repository
  • 1 Watchers
  • 5 Stars
  • 26 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pocco

The PHP documentation generator that uses your existing source code! Based on the awesome Docco Javascript documentation generator (but with improvements for PHP!)., (*1)

Example

First you need to install the library using Composer. Create a composer.json file in your documentation folder and type this:, (*2)

{
    "require": {
        "xeoncross/pocco": "dev-master"
    }
}

After you have created a composer.json file you can install Pocco., (*3)

$ composer install

Next, create an index.php file and include and run Pocco., (*4)

<?php

// Include Directly
//require('pocco/src/Xeoncross/Pocco.php');

// or with Composer (recomended)
require('vendor/autoload.php');

$dir = realpath('/var/www/path/to/project/') . '/';
$default_file_to_show = null;
$requested_file_to_show = isset($_GET['file']) ? $_GET['file'] : null;

$pocco = new Xeoncross\Pocco;

if( ! $pocco->display($dir, $default_file_to_show, $requested_file_to_show)) {

    header('HTTP/1.0 404 Not Found');
    die("404 - File not Found");

}

Created by David Pennington, (*5)

The Versions

25/07 2013

dev-master

9999999-dev

The PHP documentation generator (A Docco clone)

  Sources   Download

MIT License

The Requires

  • php >=5.2.0

 

by Avatar Xeoncross