Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a replacement for Sami? #5

Open
danmichaelo opened this issue Apr 3, 2019 · 1 comment
Open

Find a replacement for Sami? #5

danmichaelo opened this issue Apr 3, 2019 · 1 comment

Comments

@danmichaelo
Copy link
Member

Sami has been deprecated, but I wasn't able to find a good replacement for it.

phpDox almost completely lacks documentation and provides very limited functionality out of the box. I was able to connect it to phploc, but not to coverage reports. No error messages, just 0 % coverage, despite the coverage reports themselves looking OK. After reading several through issues on github I gave up. The HTML output also looks dated and less appealing than the output from Sami.

phpDocumenter seems to be the main candidate. The clean template looks quite good, not too different from Sami. On the negative side, it doesn't play well with composer. Pear is a no-go, but it also provides a phar package and I just learned that there is a tool called phive to manage phar packages:

phive --no-progress install --trust-gpg-keys 86BED3D6EFA8B121 phpDocumentor

But it installs 2.9 and phpDocumenter 2 doesn't seem to support PHP 7 fully. PhpDocumenter 3, on the other hand, is in alpha 3 and has been in development for years.

wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar
wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey
php phpDocumentor.phar -d src -t docs
@danmichaelo
Copy link
Member Author

danmichaelo commented Apr 3, 2019

Start page

In Sami:

Screenshot 2019-04-04 at 01 21 42

In phpDocumenter with the clean template:

Screenshot 2019-04-04 at 01 21 55

One small, but annoying issue is that the hierarchy on the left side doesn't expand. Even when navigating into it, it doesn't stay expanded.

Class view

In Sami:

Screenshot 2019-04-04 at 01 24 19

In phpDocumenter:

Screenshot 2019-04-04 at 01 24 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant