Php Editor For A Mac

  1. Best Text Editor For Mac
  2. Html Editor For A Mac
  3. Php Editor For Mac

The most intelligent PHP IDE with refactorings, code completion, on-the-fly code analysis and coding productivity orientation Tools Languages Solutions Support Store Find a tool for you. DSV PHP Editor for Mac Developer Tools › Webmaster Tools DSV PHP Editor by Dmitrijs Volkovs is a free piece of software that gives you the possibility to create and edit PHP scripts, HTML, CSS, Java Script and SQL pages.

We often get asked about what’s the best code editor for modifying WordPress files? Well you can use any plain text editor such as NotePad, however there are better editors out there with features like syntax highlighting, advanced find and replace, FTP integration, etc. In this article, we will show you some of the best code editors available for Mac and Windows users.

1. Notepad++

PHP Editor for Mac Developer Tools › Webmaster Tools If you are in need of applications that can help you edit and write PHP code, then take a look at the tools found on the following list. Brackets is a modern open source editor with several extremely interesting features. For example, when used in combination with Adobe Creative Cloud Extract (=preview) it can read design data such as colors, types, histories etc. Directly from a PSD file and transform it into minimalistic, correct CSS code. Php editor free download - PHP, VideoPad Free Video Editor for Mac, All2MP3, and many more programs.

Notepad++ is a free and open source code editor for Windows. It is easy to use for beginners and highly powerful for advanced users. It comes with syntax highlighting for many languages including PHP, JavaScript, HTML, and CSS. It also comes with a built-in FTP plugin that allows you to connect to your server and edit files directly without leaving the editor.

2. TextWrangler

TextWrangler came out of the popular BBEdit text editor. This powerful and feature rich text editor is a freeware. It comes with a very intuitive user interface that makes it super easy to browse files and work on projects. It has advanced search and replace tools, and it can directly edit and save files to FTP, SFTP servers. It offers syntax highlighting for many programing languages, fully supports utf-8, and even allows you to convert character encoding of text documents.

3. Coda

Coda is perhaps one of the most loved web development and programming editor for Mac. It is famous for its ridiculously good looking interface, and smart powerful features. It allows you to edit local or remote files, manage projects, work on multiple files at once with easy switching between tabs. It has built in terminal, debugger, web kit preview and inspector, and so many awesome features.

Code costs $99 for a single license but it is totally worth the price.

4. Sublime Text

Sublime Text is a cross-platform code editor for Mac, Windows, and Linux. It comes with all the features you would expect from a powerful code editor and then some more. It looks beautiful and you can tweak the appearance to make it more comfortable for you. Sublime Text comes with advanced code editor features which allow you to autofill, autocomplete, reference function in a file, multiple selection, split editing, and many more.

Sublime Text is available on trial and a single license will cost you $70.

5. TextMate

TextMate promises to bring Apple’s approach to operating systems into a text editor. TextMate is a simple yet feature rich code editor for Mac. Easy clip board management, sophisticated find and replace, autocompletion, foldable code blocks, are some of the powerful features of TextMate.

TextMate is available for $60. It is also available as a free download.

6. Atom

Atom is a cross-platform code editor created by developers for developers. It is open source, and much like WordPress, Atom users can submit packages and themes for the software. It looks pretty and you can change the appearance by installing themes. It comes with built-in package manager to extend it, smart autocompletion, file system browser, multiple panes, find and replace.

7. BBEdit

BBEdit is a beautiful code and HTML editor for Mac. It comes with all the advanced features of a powerful code editor. Syntax highlighting, advanced find and replace, autocompletion, quick lookup, multiple tabs, splittable editing windows and much more.

BBEdit costs $49.99, you can also download a free trial version.

Editor

8. UltraEdit

UltraEdit is a powerful HTML and Code editor available for Mac, Windows, and Linux. It comes with a built-in file comparison utility, autocompletion, advanced layout, multi-tab, multi-pane editors, and syntax highlighting for the most popular programming languages.

UltraEdit costs $79.5 with a limited free trial version available for download.

9. Vim

Vim is an advanced text editor that brings the power of Vi to an equally powerful feature set. Vim is open source and available for Mac, Windows, and Linux. Vim is so powerful and advanced that it is considered to be an IDE in its own way.

10. Brackets

Brackets was founded by Adobe to push web editors into the new age. It claims to be an advanced code editor that understands web designs. Brackets can take hints from a PSD file and allows you to write code faster and better. Brackets is open source and available for Mac, Windows, and Linux.

11. CoffeeCup HTML Editor

CoffeeCup HTML Editor is an easy to use HTML editor for Windows. It supports PHP, HTML, Markdown, CSS and allows you to use autocomplete, syntax validation, semantic code, among many other features. CoffeeCup HTML editor is not the ideal code editor for many other languages but if you want to learn writing PHP, HTML, and CSS, then Coffee Cup HTML editor is a good place to start.

CoffeeCup HTML Editor costs $69 with a limited free trial version available for download.

12. Espresso

Espresso is a web development tool for Mac. It comes with a powerful code editor and built-in CSSEdit. It comes with beautiful interface and advanced features like drag and drop code snippets, code folding, navigator, live styling and X-ray preview.

Espresso is available for $75.

We hope this article helped you find the perfect code editor for your needs. You may also want to take a look at our WordPress theme cheat sheet for beginners

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Learn more and find the one that's right for you

Writing an ongoing series of articles on PHP gives you a lot of insight into the world of PHP developers. I've talked with many PHP programmers, and one thing that surprises me most is how few use IDEs. Most use text editors, such as Notepad on Microsoft® Windows®, Emacs, or Vim.

The text editors I mentioned (and others I didn't) are great -- I don't want to start a pointless war over which editor is better. However, no text editor really gives you much insight into your PHP code. In particular, none views a PHP project as more than a directory of files. Let me take you into the world of IDEs, show what you can -- or should -- expect from them, and provide seven examples from the most popular IDE options.

What is an IDE?

In short, an IDE provides a one-stop shop for your coding work. An IDE contains an editor in which you can edit the code, debug the code, view your code in a browser (often embedded), and check in and out of source code control. To support that functionality, an IDE has a set of features you don't find in a basic editor, such as Notepad or Vim. Again, you can extend editors to do a lot of these things, but IDEs have all this functionality in one tidy package -- typically preconfigured:

Projects
A key distinguishing feature of an IDE is that it looks at a PHP application as a project, not just a set of files. That containing concept -- the project -- maintains extra information, such as the configuration of the source code control, the database settings for debugging purposes, and the location of certain key directories.
Debugging
Another handy feature is integrated debugging. With this functionality, you can set breakpoints in the editor at which the PHP interpreter stops during execution of the script. From there, you can inspect the values of local variables to diagnose issues in the code. It's a healthy alternative to sprinkling echo statements through your code to check values or using the error log to get the values of variables.
Code intelligence
PHP is a very regular programming language, which means that it follows simple patterns. Not only do these patterns make it easy to write, they make it easy for an IDE to inspect the code in your project. In addition, they help you while writing by displaying the results of their inspection. For example, if you define a class with the name MyClass in your project, the IDE then provides a pop-up window that includes MyClass as an option as soon as you type the keyword new. As you use the object of that type, the IDE shows its available methods and instance variables. When you start typing a function call, the IDE helps you by displaying the available arguments. Honestly, this is the No. 1 reason you should use an IDE and not a text editor. This type of code intelligence can save you hours of mistyped class names, method names, and wrong arguments.
Class view
A side effect of having a code intelligence engine in the IDE is that the IDE can produce a class view of the project. Instead of showing the files, the system can show you the different classes you have defined, regardless of the file they're in. As you click the classes, your editor is taken to that file and the selection placed on the class, method, or instance variable. It's a much nicer way of navigating around big projects.
Support for multiple languages
Each IDE covered here supports not just PHP but a collection of the related languages: JavaScript, Structured Query Language (SQL), Hypertext Markup Language (HTML), and Cascading Style Sheets (CSS). Support for HTML and CSS are often the best, because it's simpler. The support for JavaScript often comes down to syntax highlighting, but something is better than nothing.
Source code control
All the IDEs evaluated here support some connection to a source code control system, which allows you to maintain versions of the files in your project over time. You can mark particular versions of the files as a release, then revert to them when you want to roll out changes you've made. It's critical in team environments to use a source code control system, but it's important for individuals to use one, as well. A good source code control system can save you when a disk blows up or when the customer suddenly wants the version before last, rather than what you have today. Most of the IDEs support Concurrent Version System (CVS) and Subversion, which are open source control systems. One IDE supports Perforce, a commercial source code control system.
FTP/SFTP integration
Related to source code control is the ability to use FTP for the most recent code to the server. This is a lot easier than using an FTP client or packing up the files yourself, sending them to the server, and unpacking them.
Database navigation
A helpful but not essential feature is database navigation. With this feature, you can browse the database your application talks to, find out the table and field names, and run queries. Some systems even automate writing some of the database access code for you.
Php
Integrated Web browser
Some of the IDEs support an integrated Web browser that can navigate directly to the page you're editing with additional arguments you specify, the browser being hosted within the IDE or invoked externally. To be honest, I'm not a huge fan of the integrated browser because I don't mind switching between editing the code and viewing the result in two separate applications. But I can see the attraction, and it's not required that you use it.
Snippets
The last feature I found in all these IDEs was support for both canned and custom code snippets. Snippets are little fragments of code that perform small tasks, such as running a regular expression on some input, connecting to the database, and querying the database.

That sums up the core features you can expect from a purchased or open source IDE today. From here, we look at some popular IDEs. We'll show some pictures of what they look like; and explain what they support, and how much they cost, if anything.

Eclipse

Two plug-ins support PHP in the Eclipse development platform. The first, PHP IDE Project, is an Eclipse Foundation project, which means it is released under the Eclipse license and is developed using the Eclipse Foundation's tools and processes.

The other is PHPEclipse and is developed independently. As with Eclipse, both run on the Big Three operating systems: Windows, Linux®, and Mac OS X. You can download just the plug-ins (if you already use Eclipse), or download a pre-fab version with everything you need.

Both plug-ins support core IDE features you would expect to find. The code intelligence is rock-solid, pops up when you want it, and displays all the information you need for classes, methods, and arguments.

Figure 1 shows PHPEclipse running on Mac OS X. On the left side is the project view with the files in the project. Below that is the class view, which shows any classes I've defined. In the center is my code. I can have multiple files open in multiple tabs simultaneously. On the right side are panels for debugging and browsing. This is the stock PHPEclipse user interface.

Figure 1. PHPEclipse on OS X

Figure 2 shows the PHP IDE Project plug-in from the Eclipse Foundation in action.

Php
Figure 2. PHP IDE Project on OS X

Best Text Editor For Mac

If you can't tell the difference, I don't blame you. The two look very similar because both rely on the Eclipse platform to present their code browsing and intelligence features. Consistency among Eclipse plug-in GUIs is a good thing.

I did not find that either plug-in locks you into a particular Eclipse project. You can always change one plug-in for another. In my limited testing, I preferred the PHP IDE Project plug-in because it felt better integrated to me, and the performance of the code intelligence features seemed snappier. Try both to see which you prefer.

The downside to both plug-ins is that because Eclipse can be used for almost any programming language, the UI is not tailored to PHP. As a result, Eclipse's terminology is a bit alien at first. If you're new to Eclipse, this results in a steeper learning curve for these plug-ins than the other IDEs. On the other hand, if you know Eclipse, you're ahead of the game using either PHPEclipse or PHP IDE Project.

The big upside to Eclipse and these plug-ins? They are free. As in free. And stable. And reliable. Oh, did I mention they're free?

Komodo

Next up is ActiveState's Komodo IDE. This IDE runs on Windows, Mac OS X, and Linux, and it supports the usual open source language suspects -- Perl, PHP, and Ruby. The code intelligence engine is solid. It scans all your language installations to find custom extensions, such as PEAR modules. On the project side, it supports integration with CVS, Subversion, and Perforce, as well as allowing for direct FTP transfer of code to the server.

Figure 3 shows Komodo running on Windows. A class view is on the left, and the project view is on the right. Dominating the center is the tabbed code view. To the bottom are the breakpoints for the debugger, the command output, and so on. As with all these systems, you can significantly customize the UI to match your preferences.

Figure 3. Komodo running on Windows

Komodo is a commercial product. At the time of writing, the IDE was available in personal (US$29.95) or professional (US$299.95) versions. One of the unique features of it is its regular expression debugger. That alone is almost worth the price of admission if you're new to regular expressions or if you use advanced regular expression features.

Html Editor For A Mac

On the downside, there's no database integration that I could find, and I encountered some small issues with the code intelligence not always wanting to pop up. Overall, however, Komodo is a robust, feature-rich, and reliable IDE for PHP.

Php Editor For Mac

PHP Designer

PHP Designer takes a different tack from the other IDEs. Sure, it supports limited code intelligence. However, its focus is on further enabling the design aspect of the PHP Web application. This is evidenced by its integrated browser being adorned with pixel rulers to help in positioning elements on the page.

Figure 4 shows the coding side of PHP Designer in action.

Figure 4. PHP Designer on Windows

While the PHP code intelligence and debugging features are light in PHP Designer, the HTML, CSS, and JavaScript intelligence is much stronger than the rest of the field. PHP Designer fits in the space between a programmer's IDE, which concentrates primarily on the code, and Adobe Dreamweaver, which leans heavily toward design. If you're looking for something in that space, it's worth looking at PHP Designer, because the IDE is free for personal use and US$55 for the professional edition.

PhpED

NuSphere's Windows-only PhpED is easily the most feature-laden of all the IDEs presented here. It's got a great internal debugger and gets extra marks for putting a debugging tool bar into Microsoft Internet Explorer® for easy access to page debugging.

Figure 5 shows PHPEd developing a PHP application in Windows. On the far left is the file view of the project. To the right of that is the class view, and to the right of that is the code view. Below are status read-outs. In case you haven't noticed yet, all these IDEs follow the same basic design aesthetic.

Figure 5. PhpED on Windows

Standout features of PhpED include a great debugger, excellent database access, good code intelligence features, and integrated PHP help. PhpED prices range from US$119 for the basic version to US$495 for the professional version. A trial version is also available.

PHPEdit

PHPEdit, from WaterProof Software, feels like Microsoft's msdev environment applied to PHP -- and that's not a bad thing. PHPEdit is a Windows-only IDE, and it's easy to set up. It even comes with a version of PHP ready to go. It does great on code intelligence for PHP, CSS, and HTML but does very little for JavaScript. Figure 6 shows PHPEdit in action.

Figure 6. PHPEdit on Windows

To help with deployment, PHPEdit connects to CVS and Subversion, as well as FTP and its own proprietary ezDeployment system. To help speed development, in addition to the code intelligence features, the IDE has an excellent canned template library of code samples to which you can add on. The evaluation version of PHPEdit is available at no cost, but to get the real deal, it will cost US$89.

Zend Studio

Finally, we come to Zend Studio, listed last here only because it starts with a Z. It should probably be first on your mind. Why? Because it comes from Zend -- the folks behind PHP. Oh, and it's good. It runs on the Big Three: Windows, Mac OS X, and Linux. And it comes with absolutely everything you need: PHP V4, PHP V5 -- the whole deal. Yes, it takes a long time to download, but it's worth it.

As an IDE, Zend Studio is top-notch. It has all the code intelligence features you could want on both the built-in libraries and on custom code. It also has excellent debugging that's a snap to set up. To get your code into the repository, Zend Studio connects to both CVS and Subversion. To get your code to the server, there's integrated FTP. Zend Studio, looking fittingly handsome on the Macintosh, is shown in Figure 7.

Figure 7. Zend Studio on the Mac

As with some of the other IDEs, code snippet support is built in to make cranking out the code easy. The IDE also integrates directly with your database to give you insight into the available tables and fields.

The standard edition of Zend Studio is US$99, and the professional edition is US$299. Some of the features I talked about here are held back from the standard edition. A trial version of Zend Studio is available at no cost.

Conclusion

With so many excellent IDE options out there -- some of which are even free -- I can't see any reason not to give one a try, particularly if you're a professional. You can have either your company or your personal consultancy expense a portion or all the cost of any of the commercial products. When you consider the time wasted just on using echo statements to debug your code versus using an integrated debugger, the purchase price of this IDEs is a no-brainer.

Downloadable resources

Related topics

  • PHP.net is an excellent resource for PHP developers.
  • Komodo is available from ActiveState.
  • phpDesigner is a product of MPSOFTWARE.
  • NuSphere is the maker of PhpED.
  • The PHP IDE Project, a free Eclipse plug-in for PHP, is available at Eclipse.org.
  • Zend Studio, along with other helpful PHP products, is available at Zend.com.
  • For a series of developerWorks tutorials on learning to program with PHP, see the 'Learning PHP' series.
  • Visit IBM developerWorks' PHP project resources to learn more about PHP.
  • Innovate your next open source development project with IBM trial software, available for download or on DVD.

Comments

Sign in or register to add and subscribe to comments.