Blog Post RSS ?

Blogs » PHP » Coding Style
 

Coding Style

by David Mytton

Last year, I wrote an article on Coding Standards. That is all very well with your own work, but what happens when you are using code from another programmer who uses a different style from your own? The answer is phpCodeBeautifier.

Although this is an old (2003) app, I have found it useful at least once. Basically, you set a number of options in response to statements about how you want your code to look, and then run it on your file(s) and it will change the code to match your style. This means you can convert any PHP code from any style of coding to your preferred style.

For example, you can change brace styles (on the same line or on a new line), add spaces after brackets and change comment styles.

The best thing is that it is completely free and comes with GUI and command line versions.

Download here and view the manual here.

Do you use a tool, script or library in PHP that you think would be worth me blogging about? Let me know!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. How To Style Your Type With CSS Jennifer demonstrates how to use CSS to style type and...
  2. PHP Framework Plans Socially Responsible Coding Contest The Symfony PHP framework is planning a 48-hour programming competition...
  3. The Old Style Typeface Jennifer continues her series on font categories. Today, she looks...
  4. Build Your Own WordPress Themes the Easy Way A custom WordPress theme is a great service to sell...
  5. How to Override Inline CSS Styles Inline CSS can be applied to any HTML element using...

This post has 16 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...