class to format code to PEAR coding standard

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

class to format code to PEAR coding standard

Post by jmut »

Hi,
Do you know of any script class or whatever that would format a code according to PEAR coding standard.
10x in advance.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

http://mysite.wanadoo-members.co.uk/ind ... utify.html

You would have to configure each of the options to match PEAR's coding standards, but it should meet your needs.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

Roja wrote:http://mysite.wanadoo-members.co.uk/ind ... utify.html

You would have to configure each of the options to match PEAR's coding standards, but it should meet your needs.
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

jmut wrote:
Roja wrote:http://mysite.wanadoo-members.co.uk/ind ... utify.html

You would have to configure each of the options to match PEAR's coding standards, but it should meet your needs.
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
It is capable of catching php5 syntax, and it does work for PHP - I've used it before.

As I said, it does take time to configure it properly, but it can in fact do what you are looking for.

There is a different project that also can be used, depending on your PHP configuration: http://www.beautifier.org/
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

Roja wrote:
jmut wrote:
Roja wrote:http://mysite.wanadoo-members.co.uk/ind ... utify.html

You would have to configure each of the options to match PEAR's coding standards, but it should meet your needs.
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
It is capable of catching php5 syntax, and it does work for PHP - I've used it before.

As I said, it does take time to configure it properly, but it can in fact do what you are looking for.

There is a different project that also can be used, depending on your PHP configuration: http://www.beautifier.org/
good enough. thanks a lot
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

As I recall, GeSHi is one of the better ones.
(#10850)
Post Reply