Environment and development tools: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
 
Line 44: Line 44:
Using a heavy database manging client is more productive than using web tools like phpmyadmin. For such a client, you can try
Using a heavy database manging client is more productive than using web tools like phpmyadmin. For such a client, you can try


* SquirrelSQL
*HeidiSQL
* DBeaver  
*SquirrelSQL
*DBeaver


Go on official web site of this product to download them.
Go on official web site of this product to download them.
Line 53: Line 54:
You must then have a development IDE that support PHP, for example Eclipse PHP, PHPStorm or VSCode.
You must then have a development IDE that support PHP, for example Eclipse PHP, PHPStorm or VSCode.


=== Eclipse ===
===Eclipse===
====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 75: Line 76:




==== Codium ====
====Codium====
Codium is the Free version of VSCode, so the following documentation will probably be compatible with vscode too.
Codium is the Free version of VSCode, so the following documentation will probably be compatible with vscode too.


Here is the list of recommended add-ons:
Here is the list of recommended add-ons:


* PHP Intelephense
*PHP Intelephense
* phpdoc-comment
*phpdoc-comment
* PHPUnit
*PHPUnit
* PHP CS Fixer
*PHP CS Fixer


If you develop add-ons for Dolibarr, you will appreciate having the definitions of functions and other objects of dolibarr without having to source the complete tree of dolibarr...
If you develop add-ons for Dolibarr, you will appreciate having the definitions of functions and other objects of dolibarr without having to source the complete tree of dolibarr...
Line 102: Line 103:
</syntaxhighlight>
</syntaxhighlight>


=== Visual Studio Code (VSCode) ===
===Visual Studio Code (VSCode)===


If you choosed VSCode, you can should the following plugin:
If you choosed VSCode, you can should the following plugin:
* PHP Intelephense
* Git Graph
* EditorConfig so VSCode will automatically use the setup of the project defined into .editorconfig


== Git Hooks ==
*PHP Intelephense
*Git Graph
*EditorConfig so VSCode will automatically use the setup of the project defined into .editorconfig


=== Install Pre-commit githook ===
==Git Hooks==
 
===Install Pre-commit githook===
You can use git hooks to check the syntax of the file you commit and cancel (or better autofix) the commit if something is wrong.  
You can use git hooks to check the syntax of the file you commit and cancel (or better autofix) the commit if something is wrong.  


16

edits

Navigation menu