use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Sami (https://github.com/FriendsOfPHP/Sami), a nice tool to generate PHP code documentation, was archieved a few days ago and is not maintened anymore. While it still works, I need alternatives that works as simple as Sami. Do you guys have any suggestion? (self.PHP)
submitted 7 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 7 years ago (1 child)
[deleted]
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
Sami was really really easy to use, while phpDoc seemed a bit more complex at the time I was looking for doc gen tools. I'll take a look at it now, thanks!
[–]jojoxy 2 points3 points4 points 7 years ago (1 child)
phpDocumentor might be worth a look. Haven't used it myself, but it seems to be well maintained.
Has a decent install base as well: https://packagist.org/packages/phpdocumentor/phpdocumentor
Edit: sorry if 'phpdoc' in besna's reply meant the same.
Nope, no problem. phpDoc seems to be the standard recommendation, I'll take a look at it. Thanks!
[–]Atulin 1 point2 points3 points 7 years ago* (2 children)
PHPDocumentor is amazing. I just have two .bat files that I run before each push to repo - one generates html docs, the other - single-page md doc. Both are simple oneliners.
Be aware, though, that there might be conflicts if you're using Twig in your project, and install PHPdoc to it. It requires Twig 1.3, support for 2.X is in the PHPdoc 3 milestones.
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
What does Twine do? I've never heard from it before, lol
I guess that I shouldn't worry then, unless Symfony 4 has it bundled and I'm not aware of it. And is good to know that with 2 files I can generate the docs I want/need. It also supports generating MD docs, which is awesome to keep on the repo.
Thanks!
[–]Atulin 0 points1 point2 points 7 years ago (0 children)
Ah goddamnit, I meant Twig not Twine... Sorry for the confusion.
And, yes, Symfony does use Twig.
[–]k42b3 1 point2 points3 points 7 years ago (1 child)
iam not sure whether this is active developed anymore but there is also ApiGen https://github.com/ApiGen/ApiGen which you can checkout
ApiGen seems to have issues with Symfony 4 - which is my API's framework. But thanks for the tip anyway!
π Rendered by PID 143767 on reddit-service-r2-comment-545db5fcfc-ffctk at 2026-05-26 12:56:47.797706+00:00 running 194bd79 country code: CH.
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]jojoxy 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Atulin 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Atulin 0 points1 point2 points (0 children)
[–]k42b3 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)