Environment and development tools: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
m (Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.)
m (https & edits)
Line 11: Line 11:
However, this is a list of tools highly recommanded to use. They are all famous and a good help as they are featurful and of high quality. They are used by most main Dolibarr developers. Above all, they are all free and Opensource.
However, this is a list of tools highly recommanded to use. They are all famous and a good help as they are featurful and of high quality. They are used by most main Dolibarr developers. Above all, they are all free and Opensource.


= [[File:Eclipsephp.jpg]] For every developer =
=[[File:Eclipsephp.jpg]] For every developer=


These are the recommended tools but any tool compliant with PHP, Mysql and Web standards can be used.
These are the recommended tools but any tool compliant with PHP, MySQL and Web standards can be used.


== An AMP server ==
==An AMP server==


* Apache, Mysql and PHP
*Apache, MySQL and PHP


For Linux: Those 3 products are available in all Linux distributions by default.
For Linux: Those 3 products are available in all Linux distributions by default.


For Windows: Install [http://www.wampserver.com/ WampServer 2] (Mysql database, Apache and PHP in an all in one package). The WAMP server offers MySql+Apache+PHP, with the option to change the version of any component with a simple click.
For Windows: Install [http://www.wampserver.com/ WampServer 2] (MySQL database, Apache and PHP in an all in one package). The WAMP server offers MySQL+Apache+PHP, with the option to change the version of any component with a simple click.


== Chrome / Firefox + plugins ==
==Chrome / Firefox + plugins==
* Chrome
You can download Chrome from http://www.chrome.com


* Firefox 3.0 with plugins:  
*Chrome
** Firebug + Firecookie + FirePHP ,
 
** HTML Validator,
You can download Chrome from https://www.chrome.com
** User Agent Switcher to simulate usage of smartphones.
 
** Selenium IDE,
*Firefox 3.0 with plugins:  
** Cert Viewer Plus if you plan to make tests with HTTPS,
**Firebug + Firecookie + FirePHP  
** QuickProxy if you want to switch quickly on proxy tools (WebScarab),
**HTML Validator  
You can download this on web site http://www.firefox.com
**User Agent Switcher to simulate usage of smartphones  
**Selenium IDE  
**Cert Viewer Plus if you plan to make tests with HTTPS  
**QuickProxy if you want to switch quickly on proxy tools (WebScarab)  
 
You can download this on web site https://www.firefox.com
 
==SquirrelSQL==
 
*SquirrelSQL for database administration


== SquirrelSQL ==
* SquirrelSQL for database administration
You can download it at http://squirrel-sql.sf.net
You can download it at http://squirrel-sql.sf.net


== Eclipse and plugins ==
==Eclipse and plugins==
=== Install Eclipse ===
===Install Eclipse===
We recommend to use an Eclipse version provided on eclipse.org. For example: {{DownloadEclipse}}
We recommend to use an Eclipse version provided on eclipse.org. For example: {{DownloadEclipse}}


Line 49: Line 54:
{{EclipseStandardSetup}}
{{EclipseStandardSetup}}


=== Install plugin Eclipse for PHP: PDT. ===
===Install plugin Eclipse for PHP: PDT.===
If you installed Eclipse version and PDT is not included, all you have to do is using process Help -> Install new software -> Add -> Archive to add module:
If you installed Eclipse version and PDT is not included, all you have to do is using process Help -> Install new software -> Add -> Archive to add module:


Line 56: Line 61:
Once installed, you must also setup PDT into Eclipse as explained into chapter [[Environment_and_development_tools_-_Optionnal_components#From_Eclipse]]
Once installed, you must also setup PDT into Eclipse as explained into chapter [[Environment_and_development_tools_-_Optionnal_components#From_Eclipse]]


=== Setup Eclipse to get sources ===
===Setup Eclipse to get sources===
Once Eclipse is installed, you can connect to GIT repository to get last development version.
Once Eclipse is installed, you can connect to GIT repository to get last development version.


For this see page [[FAQ Get,update GIT project sources]].
For this see page [[FAQ Get,update GIT project sources]].


= [[File:Computer.png]]  Optional =
=[[File:Computer.png]]  Optional=
There are a lot of more components you can install to get more technologies support:
There are a lot of more components you can install to get more technologies support:  
[[Environment and development tools - Optionnal components]]
[[Environment and development tools - Optionnal components]]

Revision as of 14:18, 26 February 2020


Every integrated development environment can be used. However, this is a list of tools highly recommanded to use. They are all famous and a good help as they are featurful and of high quality. They are used by most main Dolibarr developers. Above all, they are all free and Opensource.

Eclipsephp.jpg For every developer

These are the recommended tools but any tool compliant with PHP, MySQL and Web standards can be used.

An AMP server

  • Apache, MySQL and PHP

For Linux: Those 3 products are available in all Linux distributions by default.

For Windows: Install WampServer 2 (MySQL database, Apache and PHP in an all in one package). The WAMP server offers MySQL+Apache+PHP, with the option to change the version of any component with a simple click.

Chrome / Firefox + plugins

  • Chrome

You can download Chrome from https://www.chrome.com

  • Firefox 3.0 with plugins:
    • Firebug + Firecookie + FirePHP
    • HTML Validator
    • User Agent Switcher to simulate usage of smartphones
    • Selenium IDE
    • Cert Viewer Plus if you plan to make tests with HTTPS
    • QuickProxy if you want to switch quickly on proxy tools (WebScarab)

You can download this on web site https://www.firefox.com

SquirrelSQL

  • SquirrelSQL for database administration

You can download it at http://squirrel-sql.sf.net

Eclipse and plugins

Install Eclipse

We recommend to use an Eclipse version provided on eclipse.org. For example: https://eclipse.org/pdt/

Also any version available on Eclipse web site is possible.

Once Eclipse is installed, it is recommanded to setup following parameters:

  • Window - Preferences - General - Workspace - Text file encoding -> UTF8
  • Window - Preferences - General - Workspace - New text file line delimiter -> Unix
  • Window - Preferences - General - Compare/Patch - Ignore white spaces -> Yes
  • Window - Preferences - General - Editor - Text editors - Tab delimiter length -> 4
  • Window - Preferences - General - Editor - Text editors - Insert spaces for tab -> No
  • Window - Preferences - General - Editor - File Association -> Add *.lang associated to "Text Editor"
  • Note: You can also disable Windows - Preferences - Java - Editor - Content Assist - Auto Activation

And if PDT is installed (see later):

  • Window - Preferences - PHP - Code Style - Formatter - Tab policy -> Tab
  • Window - Preferences - PHP - Code Style - Formatter - Default indentation for wrapped line -> 1
  • Window - Preferences - PHP - Code Style - Formatter - Default indentation for array initializer -> 0
  • Window - Preferences - PHP - Editor - Typing - Uncheck "When Pasting Adjust Indentation" (keeping this option checked create corruption of text files by adding bad end of line characters)
  • Window - Preferences - PHP - Code Style - Formatter - Use the profile provided into dev/setup/eclipse/PSR-12 [built-in].xml as Eclipse syntax formatter.
  • Note: You can also disable Windows - Preferences - PHP - Editor - Content Assist - Auto Activation

Install plugin Eclipse for PHP: PDT.

If you installed Eclipse version and PDT is not included, all you have to do is using process Help -> Install new software -> Add -> Archive to add module:

https://download.eclipse.org/releases/xxx - xxx = version

Or from the GUI of any Eclipse =>Install New Software =>Work With Kepler => Wait until list display =>General Purpose Tools Check PHP development tools (PDT)=>Install

Once installed, you must also setup PDT into Eclipse as explained into chapter Environment_and_development_tools_-_Optionnal_components#From_Eclipse

Setup Eclipse to get sources

Once Eclipse is installed, you can connect to GIT repository to get last development version.

For this see page FAQ Get,update GIT project sources.

Computer.png Optional

There are a lot of more components you can install to get more technologies support: Environment and development tools - Optionnal components