We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

IDE for extension

What IDE are you using for develop extension? What is the best IDE in MacOS for develop php extensions?

It is up to you to use an IDE that best suits your needs. All you need is just a text editor to write anything really. Some people use Eclipse, some PHPStorm (like myself), others VIM or nano.

The team mostly uses Sublime Text 2. This is just our preference.



98.9k

In Ubuntu/Linux, a good tool is KDevelop (https://www.kdevelop.org/), I use Sublime Text and KDbg to debug (https://www.kdbg.org/)

@Phalcon Thanks.

@kkolesnikov PhpStorm is not IDE for develop extension. PhpStorm is IDE for develop application written in PHP with using phalcon extension :) Yes, we can use it but who needs it?

@golovanov People that like to have autocompletion for their code, need an IDE. Text editors don't suffice in that case.

Do you have a moment to list, possibly, any ST2 ( and/or 3?) plugins that you use? Does the phalcon-devtools IDE work within ST2?

I pretty much just use ST2 or Coda.

This is what I have for Sublime Text 2

  1. Download ST2 it and extract it. In Linux it runs out of the box (executable in the root folder and icon in the Icons folder)
  2. Go to https://wbond.net/sublime_packages/package_control and install the package manager (you will need to restart sublime text 2)
  3. Press Ctrl + Shift + P and choose Packages: Add Package

The packages I have are: Additional PHP Snippets Alignment Bracket Highlighter Function Name Display Git HTML5 Indent XML jQuery Open Recent Files PHPTwig (for symfony projects) PhpDoc PrettyJSON SublimeLinter WordHighlight Zen Coding

Unfortunately you can only do them one at a time so after you install one (look at your status bar) you will need to press Ctrl+Shift+P and Packages: Add Package and select the new one. I am pretty sure that there is a way to do it from the console but I haven't found it yet. To access the console you will need Ctrl + ` (tilda)

Also select Preferences User and enter this

"highlight_line": true,
"ignored_packages":
[
    "Vintage"
],
"rulers":
[
    80,
    120
],
"translate_tabs_to_spaces": true,
"word_wrap": false

You can change the rulers if you want and remove the translate tabs to spaces or set it to false if that is what you use. The word_wrap is used to wrap text to the window size (auto) or whatever margin you want (see Default options)

Phalcon related resources for ST2

https://github.com/phalcon/volt-sublime-textmate https://github.com/phalcon/zephir-sublime

Thanks for the response Nikoloas. I actually have been using ST2 for a while and really love it. Added some of the packages you listed. I also have Volt already :). I was wondering more about completion for the phalcon classes themselves. I have netbeans as well, but I don't like it nearly as much as ST2. I was really hoping the phalcon-devtools would work for sublime, but I haven't found anyone who has said that it does.



104

In Ubuntu/Linux, a good tool is KDevelop (https://www.kdevelop.org/), I use Sublime Text and KDbg to debug (https://www.kdbg.org/)

How is KDbg helping you in Zephir extension development? Or do you use it for something else?