Php Ide For Mac
- Best Php Ide For Mac 2019
- Php Editor For Mac
- Setting Up Imac Computer
- Php Text Editor For Mac
- Perl Ide For Mac
- Best Ide On Mac
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?
The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other open-source software. This software can be used with any Arduino board. Refer to the Getting Started page for Installation instructions.
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:
PHP IDE On Mac and Linux with Parallels Parallels is a commercial product, fully supported by Parallels, an SWsoft company. Even though we didn't count exactly, based on the feedback from NuSphere PHP IDE community we know that there is really. PhpED on Mac or Linux with Parallels provides the. Eclipse-PHP Galileo package for Mac OSX Tiger: RESOLVED: 278019 php Change the icon for EPP PHP Packages: RESOLVED: 280419: PHP ui plugin internal error: RESOLVED: 514280: editor does not open: CLOSED: 532683: Photon M6 PHP Package not available: CLOSED: 514697: Not possible to install PDT 5.0 on Neon.3 PHP EPP: CLOSED: 508704: Include TM. Komodo Edit is a stripped down version of Komodo IDE. Nevertheless Komodo Edit is a full featured text editor with such features as syntax highlighting, automatic insertion of matching parentheses, FTP support, and many other features a modern editor should have. (Later I switched to Kate because Komodo's bad support of Hebrew text. The IDE understands where you want to go and gets you there instantly. Fast and Safe Refactoring Refactor your code reliably with the safe Rename, Move, Delete, Extract Method, Inline Variable, Push members Up / Pull members Down, Change Signature, and many other refactorings.
- 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 includesMyClass
as an option as soon as you type the keywordnew
. 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.
- 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.
Figure 2. PHP IDE Project on OS X
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.
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 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.
Best Php Ide For Mac 2019
The Lightning-Smart PHP IDE
PhpStorm deeply
understands your code.
Major frameworks support
PhpStorm is perfect for working with Symfony, Laravel, Drupal, WordPress, Zend Framework, Magento, Joomla!, CakePHP, Yii, and other frameworks.
All the PHP tools
Php Editor For Mac
The editor actually 'gets' your code and deeply understands its structure, supporting all the PHP language features for modern and legacy projects. It provides the best code completion, refactorings, on-the-fly error prevention, and more.
Front-end technologies included
Make the most of the cutting edge front-end technologies, such as HTML 5, CSS, Sass, Less, Stylus, CoffeeScript, TypeScript, Emmet, and JavaScript, with refactorings, debugging, and unit testing available. See the changes instantly in the browser thanks to Live Edit.
Built-in developer tools
Perform many routine tasks right from the IDE, thanks to the Version Control Systems integration, support for remote deployment, databases/SQL, command-line tools, Docker, Composer, REST Client, and many other tools.
PhpStorm = WebStorm + PHP + DB/SQL
All the features in WebStorm are included into PhpStorm, with full-fledged support for PHP and Databases/SQL support added on top.
Intelligent Coding Assistance
Hundreds of inspections take care of verifying your code as you type, analyzing the whole project. PHPDoc support, code (re)arranger and formatter, quick-fixes, and other features help you write neat code that is easy to maintain.
Smart Code Navigation
Be the master of your codebase thanks to the efficient, lightning-fast navigation features. The IDE understands where you want to go and gets you there instantly.
Setting Up Imac Computer
Fast and Safe Refactoring
Refactor your code reliably with the safe Rename, Move, Delete, Extract Method, Inline Variable, Push members Up / Pull members Down, Change Signature, and many other refactorings. Language-specific refactorings help you perform project-wide changes in a matter of clicks, which can all be safely undone.
Easy Debugging and Testing
PhpStorm is renowned for its zero-configuration Visual Debugger, providing extraordinary insight into what goes on in your application at every step. It works with Xdebug and Zend Debugger, and can be used both locally and remotely. Unit Testing with PHPUnit, BDD with Behat and profiler integration are all also available.
What’s new in PhpStorm 2020.2
PHP 8 Union Types
We started rolling out support for PHP 8 with union types. It comes with syntax support, type checks, validations, and quick-fixes for migrating a codebase.
You can add, install, and update dependencies with suggestions from packagist.org, as well as try many other time saving tools.
Full Support for GitHub Pull Requests
The GitHub support was extended and now PhpStorm can perform the entire Pull Request workflow inside the IDE. Starting from searching for PRs, checking all the info, adding comments, viewing the timeline, and everything else up to merging a PR – all without ever leaving your IDE.
New Control Flow Engine
One of the core components of PhpStorm got a massive update. It is now capable of handling many edge cases that were not checked before. Detect redundant conditions, expressions that are always null, and much more.
Meet the PhpStorm community
Php Text Editor For Mac
@geeh @phpstorm I'm hooked mate. I've been so productive lately it's silly. Keep up the great work.
@phpstorm's code completion is incredibly useful.
@phpstorm is magical... in a good way. I find myself saying 'oh that's convenient' over and over.
If you are developing in PHP and are not using PhpStorm, you are working too hard.
Perl Ide For Mac
'I'm so spoiled by PhpStorm!'