Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Adding autoguess config file (phpdoctor.ini at executing path). #49

merged 1 commit into from

2 participants


I've added an autoguess config file so it is more convenient to use PHPDoctor in multiple projects. If you set an alias for the modified phpdoc.php (eg. alias phpdoctor='/path/to/phpdoc.php' in .bashrc) you only have to add a phpdoctor.ini file to a project and just run phpdoctor (please note: i made it executable).

PS: I saw the issue #23 but i'm not that comfortable with PEAR to create a package.

@peej peej merged commit cff11e2 into peej:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 phpdoc.php
4 phpdoc.php 100644 → 100755
@@ -1,4 +1,4 @@
+#!/usr/bin/env php
PHPDoctor: The PHP Documentation Creator
@@ -39,6 +39,8 @@
if (!isset($argv[1])) {
if (isset($_ENV['PHPDoctor'])) {
$argv[1] = $_ENV['PHPDoctor'];
+ } elseif (is_file(getcwd().'/phpdoctor.ini')) {
+ $argv[1] = getcwd().'/phpdoctor.ini';
} elseif (is_file('default.ini')) {
phpDoctor::warning('Using default config file "default.ini"');
$argv[1] = 'default.ini';
Something went wrong with that request. Please try again.