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.
Related
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 had already searched on Github and SourceForge, but these keywords are so much used that i could not find any relevant result , specially on sourceForge.
I want to know if there is any Open Source tool written in php for converting XML in UML diagrams.
I dont want support for all UML diagrams , my main focus in Class diagrams.
Why i want this software?
I am developing a tool for extending UML diagrams, in order to inject security constrains at the time of designing system(UML creating). So, if i can get a open source written in php for converting xml into php than, it will save a lot of time.
i am developing it in PHP so that it can be provided as a web service to all.
This question was never asked on SO(particularly for soucecode in php) , it will help others to find quick answer(whether any such tool exist or not), Converting XML to UML is a common topic.
Maybe try to convert your xml to php-classes with this : https://github.com/moyarada/XSD-to-PHP and than use php_uml (http://pear.php.net/package/PHP_UML/) from pear.
Never tryd one of this tools, but maybe you got it work.
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.
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 have an application and need to write a program that is able to figure out attachments from all kinds of email senders (and MUAs) reliably. PHP doesn't seem to have a great MIME parser so I was hoping some other languages might.
I've seen the PHP Mail Mime Parser but it's not robust at all and I know (and have confirmed) it doesn't work reliably with all MUAs.
Does anyone know of a more real-world-hardened mail parsing library?
I can use any language, doesn't matter.
How about Perl 5's Email::MIME? Looks like something that will fulfill Your needs, if I understood You correctly.
Python's email module is excellent and includes full support for MIME emails, including incremental parsing. I think the moral here is that you can do this in many languages.
Of course, you should do it in Python.
Perl has several email parsing libraries, choose the one which suits your needs best.
I have had a lot of success using Ruby and the mail gem at http://github.com/mikel/mail this is now the default creator/parser for Rails.
I think you are really going to get answers from people with their preference of language so I think its ultimately a question of preference but we use this gem in the web front end of CloudMailin.
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.
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.