Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Compare and Choose and IDE for PHP development

Compare and Choose and IDE for PHP development 27 Sep 2012 12:45 #4083

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Does anyone have any experience using netbeans for custom coding/templating of their cook generated components?

I'm extremely new to the IDE world and whilst there are tuts out there, I'm unsure how to proceed with developing my code easily with the ability to version my enhancements.

What I need to be able to do;
  1. Take the backbone of my component generated with cook, install & run it inside a local Joomla installation, purely for my component
  2. further develop application layer with some custom functions - imports, exports and so on
  3. Template the front/back ends
  4. Save and output incremented versions of my installer package as I go
Has anyone any experience of this?

I would be eternally grateful if someone could provide a step by step from setting the project up from source to outputting the packages, or in fact anything that helps!

Ideally, working with the entire Joomla installation would be most ideal as I would be able to leverage joomla wide variables within the component too, I think???

Many thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 12:48 #4086

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I prefer Eclipse, and i am a bad with IDE's... In fact, Dreamweaver is easier to me because i used it for so much longer time than eclipse... Netbeans... Never liked it, never understood the interface
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 12:52 #4087

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Could I achieve everything I'm wanting to do in eclipse? Also, do you use it for those purposes?

Thanks for the reply!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 13:08 #4088

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Netbeans do not work on my Macintosh station, do not know why.

Eclipse is open Source, and a version has been dedicated for Joomla : JCode.
I do not see any difference because I didn't tryied before JCode, but it do not seems really exceptional for Joomla. I cannot see any reference to Joomla in it.

But it is a good one.
- Autocompletion is good
- Code snipplets are indenspensable (config > php > templates ... something like that to find)
- Another excellent feature is when you click on a PHP var, it highlight everywhere this var is written in the file. Really excellent.
- TODO tasks, Warnings, ...

I do not use the debug step by step. Not installed correctly, If somebody can help, it is welcome.


ANOTHER ONE :
VeCrea talked me to this one : Coud 9 (c9.io/)

It looks great.
Your workspace is online and can be shared.
There is a local software to install, but it do not work on my old station as well.

So I didn't tryed yet.

The interface seems simplist, not with a lot of features, but this tool can do versioning I think, and for keeping safe your workspace, and to share it, I think it is a good deal.

Hope it helps
Coding is now a piece of cake
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 13:17 #4089

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I still continue to use dreamweaver for HTML, JS and CSS purposes.
CSSEdit also for CSS (Macintosh)

the reason is because too much tabs are opened, so I open templates, javascripts and css files with dreamweaver in the same time.

Cook Self Service has been created with JCode version of Eclipse
The javascript builder (you are using everyday), has been created with Dreamweaver. (JS and CSS files)

JCode do not handle very well javascript for syntax coloration, neither css for autocompletion of css properties. Dreaweaver does.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

Compare and Choose and IDE for PHP development 27 Sep 2012 13:24 #4090

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi,

So on balance, JCode Eclipse seems best?

Can it handle outputting the packages as further customisations added to the base component?

Thanks admin!
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 13:31 #4091

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
No.

I am thinking of developping a repackager specially for Cook components.
Coding is now a piece of cake
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 13:43 #4092

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
+1

That sounds pretty damn awesome!

I know that one of the "junior chef's" here on cook has built a component for updating/rolling back mod on files but it seems a little too much work for a large component for me!

A specific utility for cook would be awesome!

Thanks Admin!
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 27 Sep 2012 16:44 #4100

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Man this whole thing is becoming huge
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 28 Sep 2012 09:29 #4120

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hi @admin

I thought I'd give Eclipse a go...

RE:
... I do not use the debug step by step. Not installed correctly, If somebody can help, it is welcome...

I'm running it on MacOSX Snow Leopard with MAMP PRO but similar setups on windows/linux with WAMP and XAMPP won't alter things too much. Also, and I have to say, this is one of the first times I've ever found them helpful, but, the Joomla Docs on this were invaluable! :cheer:

Yes, XDebug was not straight forward but, I think I might be able to clarify...
  1. In your php.ini file, implicit_flush MUST BE SET to On
  2. Right near the bottom of your php.ini, paste the following code...
    zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
    
    xdebug.profiler_output_dir = "/tmp/xdebug/"
    xdebug.profiler_enable = On
    xdebug.remote_enable=On
    xdebug.remote_host="localhost"
    xdebug.remote_port=10000
    xdebug.remote_handler="dbgp"
    N.B. The zend_extension will need to be updated to match your php version. In fact, this line may actually exist and simply need to be uncommented by removing the preceeding ";" semi-colon.
  3. Note the xdebug.remote_port=10000 as this ill need to be set in Eclipse preferences under debug options
  4. In Eclipse Preferences->PHP->Debug and set PHP Debugger to XDebug and click configure to the right-hand side of it.
  5. Click on XDebug->Configure and ensure the Debug port matches xdebug.remote_port from your php.ini (STEP 3) and also that Zend Debugger port is not conflicting
  6. Restart Webserver/sevices and confirm your XDebug settings in your phpinfo()
Hope it Helps!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
Last Edit: 28 Sep 2012 09:57 by JoomGuy.
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Compare and Choose and IDE for PHP development 28 Sep 2012 10:18 #4124

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I will not test it now, but thank you anyway.

I keep the link of this post.
Coding is now a piece of cake
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 28 Sep 2012 11:24 #4127

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
OK, I'm not really sure where to begin.

Background
As I said in my original post, I'm new to IDE's although I understand the basic concept. Although the specific IDE (Netbeans, Aptana, Eclipse) is not really important to me as I'm as unfamiliar with each of them (and their many altenatives) as the next. On the other hand, I do have Netbeans & Eclipse (Eclipse + Aptana plugin) so one of these options would be the most preferable for further development of my component(s) if possible. That said, if there is any specific reason/experience to suggest another, I'm more than happy to try them.

Scenario
Like many other COOK users here I'm new to component development for Joomla and COOK is enabling me to further enhance my skills in application dev for joomla! :cheer: Whilst I'm moderately confident that I can learn almost anything that I don't quite understand regarding PHP, JS, Jquery and so on, the size of the application that I'm building is huge! It is therefore of great importance to me that as my component grows I can easily and effectively manage any source code changes and enhancements that I implement from my 'base' component. Therefore, when I update my base component in COOK, I need to be able to easily merge these 'local' changes into the installer package or the installed joomla component and repackage it in an installer.

Step by step - what I need to be able to do...
Ideally, what I'm wanting to do is (almost certainly the same as anyone else);
  1. Build my base component in Cook
  2. install this in my local joomla instalation
  3. Edit these in my installation -
    - Add custom queries
    - Add functions
    - Add and edit CSS and JS
  4. Meanwhile, my base component will be updated using cook so I will need to download and merge with installed component KEEPING MY CUSTOM EDITS described in steps 1 & 3
  5. Now, further edit source code as in Step 2 & 3
  6. Recompile the installer with all of the modifications
Using this routine, I also need to be able to manage incremental versioning - not worried about SVN repository as I'm the only developer at the moment.

Questions???
Please could anyone share their setup details (IDE's and plugs) as well as a step-by-step on how to go about this?

Is what I'm proposing in terms of steps 2, 3 & 5 actually the way to go or is there something I'm missing? What I mean is, is there another way, like editing/running from the unarchived version of my zipped component downloaded from cook?

Any help with this would be MASSIVELY APPRECIATED!!!

Many thanks,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
Last Edit: 28 Sep 2012 11:25 by JoomGuy.
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 05 Oct 2012 11:39 #4274

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Anyone?
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Compare and Choose and IDE for PHP development 05 Oct 2012 12:34 #4282

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
For the moment, about the process you describe, I still do it manually.

What is missing in Cook is a good post production repackager and versioning tool.
As I told before, I do not know file versioning and must learn it.

Repackaging means :
- Recreate admin and site folders for the archive. And putting the xml manifest in the root.
- Add your languages files in 'languages' folders (site and admin)
- Rewrite the SQL installation scripts if you changed some DB structure
- Add your new folders in the manifest if you added some
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy

Compare and Choose and IDE for PHP development 05 Dec 2012 06:22 #5818

  • Chipvaden
  • Chipvaden's Avatar
  • Offline
  • New Member
  • Posts: 9
  • Karma: 0
I 'm using PhpEd.
And using this IDE debug. It's working fine with Joomla.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.164 seconds

Get Started