Textmate autocompletion and class outline for PHP project [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm using PDT, but want to switch to any lightweit editor. First I want to try Textmate. Eclipse has several useful features:
class outlile to get list of properties and methods (with signature) to navigate;
type hierarchy, it is like class outlile but it shows full inheritance tree;
autocompletion for custom classes names, methods etc. (not only for standard functions);
go to declaration feature
Does Textmate provide this features, or is there bundles to get such functional?

You can get auto completion in TextMate for PHP using the tm-completion bundle. In doesn't work anything as good as what you might see in other IDEs like Eclipse or Visual Studio, xCode. But is works.
Standard PHP completion is supported. See the PHP Bundle -> Support -> Help

I know it can be frightening — it was for me — but you can code very efficiently with Vim. It's definetly not a turnkey solution but if you have some time between projects it's worth it.
Taglist and tagbar are plugins that provide code navigation.
There are a number of solutions for autocompletion.
you can go to declaration with gd in a single file or with exuberant ctags and ctrl-] in more complex situations.

TextMate has a 30 day trial, so give it a go and see how it is for you.
I use Coda, which has class outline and autocompletion for native PHP functions, but not custom classes.

no, i don't think there's any of these - Textmate is a text editor, not a full-blown IDE.
default php bundle provides autocompletion and code hints... but only for built-in functions.
"go to symbol" command brings up class and functions outline... but only for the current file.

For quickly browsing to classes, functions and methods in a file, there is the TmCodeBrowser plugin. It uses Exuberant CTags to index the various code types.

Related

What is a good PHP Editor for Wordpress [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am c# developer working on a Word Press site. I am used to the Visual Studio experience of opening the project, working on it, then pressing run to see your site and debug it.
I am having a hard time trying to get a similar experience with WordPress. For example, I have tried both VS plugs for PHP. They both work great for new PHP projects, but with a fresh copy of the latest wordpress, the both break. In one, it just gives an error message, the other says that the MySQL Plugin is not enabled. (Yes, MySQL is installed and I can successfully host WordPress with MySQL through IIS). Dispite messages on both forums, I have not been able to resolve.
So the question is: what is a good editor, free or paid for working with wordpress sites? Just something that works. Like have you actually used one successfully with WordPress? My latest attempt is with PHP Storm which looks really good, but am still struggling with the learning curve of a new IDE. I would really like to be able to stay with VS if possible, as I like the Source Control.
PHPStorm is the best one and you can try it for free for 30 days.
Elcipse and Netbeans are both really good as well and free.
So here is my top3 editors that i'm working with:
Sublime text 3 - http://www.sublimetext.com/3
Apstana Studio - http://www.aptana.com/products/studio3
Brackets - http://brackets.io/
Why not use Netbeans?
I have been using it for 3 years now and it's great. It has built in support for Zend framework, Symphony, Hudson/Jenkins, Doctrine 2, PHPUnit, Atoum, APIGen and many more.
Some of its features include:
PHP Source Code Editor offering code templates and code generation, refactoring, parameter tooltips, hints and quick fixes, and smart code completion.
PHP 5.4 Support
Continuous Integration Support
PHP Debugging
Remote and Local Project Development
Code Coverage
Namespace and Variable Types
MySQL Integration
Documenting PHP Code with ApiGen
Komodo IDE is in my opinion the most complete and fast and best PHP editor. In fact it's not only an editor but Active State also has a free version of Komodo Edit. It uses the Mozilla xul render engine: http://en.m.wikipedia.org/wiki/ActiveState_Komodo

PHP Wiki Regex Scripts [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page that's some subset of the HTML produced by the actual PHP Mediawiki render engine.
I want it for BzReader, an offline Mediawiki compressed dump reader written in C#. So a C# parser would be ideal, but any good code would help.
Of course, if no one has done it before, I guess it's time to start a project maintaining a free and separate Mediawiki parser, based on Mediawiki's own parser, but less tightly integrated with Mediawiki itself.
So, does anyone know of any base I could begin with, that would be better than hacking from the Mediawiki PHP code?
There is a list of parsers on http://www.mediawiki.org/wiki/Alternative_parsers, but a c# parser is not included there...
Update
Bare in mind Screwturn doesn't stick to the Mediawiki syntax but uses its own variation which does vary a bit.
The Mediawiki syntax doesn't lend itself to LALR parser (or even LL*) as it has a lot of ambiguities in its definition, and also allows HTML. There's a discussion on that in this question, you're essentially stuck with writing your own parser and tokenizer rather than simply writing a BNF file for it and then using ANTLR/Gold/Irony.
Roadkill Wiki uses a Creole parser for its Mediawiki parsing, but with limited support.
Screwturn is released under the GPL license, and has a C# parser:
Screwturn license
Screwturn source download (unfortunately there's no web svn)
The class you are after is Core.Formatter which has lots of regexs to do its work:
public static class Formatter {
}
It's not the nicest looking code "but it works".
I had some words to say about Mediawiki templates here. Interesting that there's a list of alternative parsers now, I'll have to investigate that.

Minimalistic PHP blogging engine with focus on code quality [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking to set up a blog.
There are many "what's the best blogging engine?" questions on SO, but none totally focused on code quality.
I have done a lot of work with WordPress, and it's the #1 solution for many cases, no question. Its extendability and versatility are unmatched. But the code base is a mess, it has a huge memory footprint and extending it often isn't fun. Also, the back-end feels extremely slow on slightly older machines and becomes bearable only with Google Gears IMO.
I'm getting less and less comfortable using it.
For that reason, I am looking for recommendations for a PHP-based blogging engine that is
Simple, slim, and minimalistic in build
Has good, structured, clean code, uses PHP5
Has blogging basics: Tags, Categories, Comments
Doesn't have to look good but needs to output good, semantic HTML / CSS so I can customize
Supports some sort of spam control (Captcha and / or Akismet would be nice)
I don't care whether it's database or file based
Optional:
An API would be nice but is not mandatory
Has a plugin system for extensions
Wet dream:
Markdown support
Not sure exactly how many things it knocks off your list but I think Habari is worth a look.
They host a demo you can mess with if you want to check it out quickly.
I would take a look at Vanilla. Mainly it's a forums script, but it also has blogging features.
I has all the things you mentioned. Except is looks good enough:
the entire code is about 500k
it's well structured(MVC and well done), it supports extensions
I'm not sure about tags(for sure they are supported by extensions if not in the core)
looks good, have template mechanism, a few nice themes are available
there are extensions to prevent spam, I don't know if an aksimet extension is available.
it's mysql based
Optional:
- don't know what you mean by apis
- plugins and themes supported
Wet dream should be supported, at least in theory(on my old vanilla forum it worked in a manner I didn't want to, the code was html encoded, so html tags were not supported, including links, however i've seen them working on other forums), if not extensions could solve the problem.
Regarding the spam control and user comments posting you should use 2-3 plugins(Yes plugins are supported and are called Extensions).
There's a huge number of blogging engines written in PHP - all slightly different. For my purposes, I found Serendipity to be the most apposite.
C.

What PHP Blogging Software Should I Choose [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am thinking of starting a blog, which I would like integrated into my existing website. I come back empty handed from googling for a comparison of blogging software written in PHP.
My requirements:
Simple but not rudimentary (not a result of a 15 minute CodeIgniter tutorial)
Quality source code (I'd like to be able to learn from it and maybe change it)
Prefer PHP5 over PHP4
Work with MySQL
Easy to integrate into an existing website (I don't want it to be a separate application with a different look and feel under a "blog" directory
Run under safe_mode
Built-in or easy-to-add source code highlighting would be a plus.
Many programmers use Serendipity.
Wordpress' code base is really a mess. A bunch of functions operating on global variables.
I don't ask you to simply trust me, or anyone else. Go look yourself at the code!
And it's written in php4 style, so definitely not what the topic starter asked for.
Wordpress definitely... Great support, many plugins, many themes, etc.
why not try with wordpress ? I think really fit in all your points
Update:
if you still dont like wordpress I can recommend Mephisto which was wrote in ruby. I have tried it but for me was a pain in the ass. Simply wasn't intuitive for me as user.
Wordpress, no question.
You can always have the best with Wordpress + Host it on your own to utilize all of it's great features.

Anything better than PHPDoc out there? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does anybody use anything else to document their PHP code than PHPDoc?
Are there any tools that read the same documentation syntax but give richer output?
I´ll go for doxygen too.
Here are several reasons :
compatible with phpdoc tags and other popular ones : it´s interoperable
works with various programming languages : a better time investment
there is alternative syntaxes : can choose the commenting style that suit you
very efficient with advanced formating / tagging / metadata
there is a GUI that is not linked to any IDE and an eclipse plugin as well
And still free, multiplatform, and open source :-)
It´s easy to learn, but harder that phpdoc because a lot richer.
You could try DocBlox; which is intended to be an alternative for phpDocumentor but with support for additional features of which full PHP 5.3 support is one. An additional benefit is that is it quite fast and uses relatively little memory.
You can read more on http://www.docblox-project.org or see a demo at http://demo.docblox-project.org/default
Another option other than phpDocumentor is Doxygen documentation with PHP support.
Doxygen (www.doxygen.org).
ApiGen
http://apigen.org/
ApiGen has support for PHP 5.3 namespaces, packages, linking between documentation, cross referencing to PHP standard classes and general documentation, creation of highlighted source code and experimental support for PHP 5.4 traits.
DocBlox
http://www.docblox-project.org/
PHP 5.3 compatible API Documentation generator aimed at projects of all sizes and Continuous Integration.
able to fully parse and transform Zend Framework 2
I've not used it with PHP, but doxygen claims to support the language.
I am using Doxygen too - you get used to the various keywords really fast - they are kind of self-explaining. ;)
RubyDoc is nice too, I espcially like they layout of the rdocs.
Doctrine uses PHPDoctor, which appears to work well with 5.3 in my tests.
http://peej.github.com/phpdoctor/#download
If you need to document code for PHP 5.3+, eg. if it uses namespaces Ted Kulp's fork of PHPDoctor might be your answer.

Categories