开发环境与工具: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 10: Line 10:
{{TemplateDocDevZh}}
{{TemplateDocDevZh}}


Every integrated development environment can be used.
您可以使用任何开发环境。但是,这里有一份高度推荐使用的工具清单,因为它们提供了较好的完整性、开发质量和开发效率。Dolibarr的大多数核心开发人员都在使用它们。请注意,所有这些解决方案都是免费和开源的。
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]] 适用于每个开发者=


These are the recommended tools but any tool compliant with PHP, MySQL and Web standards can be used.
这是推荐的基本开发环境,但任何符合Web、PHP和MySQL标准的工具都可以做到这一点。


==An AMP server==
==一个 AMP 服务器==


*AMP means Apache + MariaDB + PHP
*AMP 表示 Apache + MariaDB + PHP


For Linux: These 3 products are available in almost all Linux distributions by default.
Linux平台:默认情况下,这3个产品在所有发行版中都可用。


For Windows: Install [https://www.wampserver.com/WampServer] (MariaDB SQL database, Apache and PHP in an all-in-one package) or a comparable system environment (like XAMPP).
Windows平台: 安装 [https://www.wampserver.com/WampServer] (基于MariaDB SQL database、Apache和PHP的组合软件包) 。这个WAMP服务器提供了MariaDB+Apache+PHP三个组件,只需单击一下即可变更其中任何一个组件的版本。


The WAMP server offers MariaDB+Apache+PHP, with the option to change the version of any component with a simple click.
==浏览器 (Chrome / Firefox) + 插件==
 
==Webbrowser (Chrome / Firefox) + plugins==


*Chrome + plugins
*Chrome + plugins
Line 43: Line 40:
or the new Firefox Developer Edition:  https://www.mozilla.org/de/firefox/developer/
or the new Firefox Developer Edition:  https://www.mozilla.org/de/firefox/developer/


==SquirrelSQL or DBeaver==
==访问数据库的工具 SquirrelSQL 或 DBeaver==


*SquirrelSQL or DBeaver for database administration.
*SquirrelSQL or DBeaver for database administration.
Line 49: Line 46:
Go on official web site of this product to download them.
Go on official web site of this product to download them.


==Eclipse and plugins==
==IDE(Eclipse、VSCode)和插件==
===Install Eclipse===
===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 58: Line 56:
{{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 65: Line 63:
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]].


== Git Hooks ==
===VSCode===
For VSCode
 
==Git Hooks==


=== Install Pre-commit git hook ===
===Install Pre-commit git hook===
You can use git hooks to check the syntax of the file you commit and cancel the commit if something is wrong. You need '''phpcs''' command line tool for this (sudo apt-get -y install php-codesniffer). If you have '''phpcbf''' installed, you can also fix the files automatically. This is how to:
You can use git hooks to check the syntax of the file you commit and cancel the commit if something is wrong. You need '''phpcs''' command line tool for this (sudo apt-get -y install php-codesniffer). If you have '''phpcbf''' installed, you can also fix the files automatically. This is how to:


714

edits

Navigation menu