I need a PHP editor like eclipse to debug my codes. Is there any open source available for ubuntu?
I agree with Sonamor about VSCode. I personally use it all the time. However, there are other alternatives that are also very good, in fact, in my opinion, better than VSCode when it comes to php debugging.
Here's a list of alternatives that will run on Ubuntu:
Atom - url: https://atom.io/
- Github repo: https://github.com/atom/atom
KDevelop - https://kdevelop.org
Kate - https://kate-editor.org/ide
PhpStorm - https://www.jetbrains.com/phpstorm/
. Geany - http://geany.org
I personally use all of them, currently and for php, I prefer PhpStorm above the rest. It's not open source like the others, but well worth the money. However, since you asked for open source, the best for php debugging in my opinion would definitely be Atom.
***Edited to add Geany, suggested by user: ivanivan and YES, I forgot about Geany and it's a great IDE.