Debian package that contains tools for full value PHP development using netbeans
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Vítězslav Dvořák 02d4ba3e0a use focal instead of trusty 3 months ago
.github Create FUNDING.yml 7 months ago
applications installphp rework 12 months ago
bin update 6 months ago
debian update 6 months ago
nbm PHP Switch plugin added 8 months ago
nbproject Initial release 6 years ago
.gitignore Version 0.2 package build 6 years ago
Jenkinsfile use focal instead of trusty 3 months ago
LICENSE Initial commit 6 years ago
Makefile Makefile added 1 year ago
README.md netbeans version update 3 months ago
build Release 1.1 2 years ago
composer.json Package skeleton 6 years ago
composer.lock Bump symfony/dependency-injection from 4.2.1 to 4.2.12 2 years ago
netbeans-php-config.zip Selenium and Codeception added 4 years ago
netbeans-php-startup-notify.png Startup notify screenshot & info added 4 years ago
netbeans-php-tools.png Screenshot in acton 6 years ago
netbeans-php-tools.sh executables moved to bin subdir 3 years ago
netbeans.png Logo update 3 years ago
package.json Debian package fix 3 years ago
user.js user.js file added 3 years ago

README.md

netbeans-php-tools

Netbeans

Debian package that contains tools for full value PHP development using netbeans

Installation:

  1. NetBeans requires for some functionality Oracle version of JDK. There is Debian way ho to make well. Next Download netbeans and install it.

    wget https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.3/Apache-NetBeans-11.3-bin-linux-x64.sh ; gksudo sh ./Apache-NetBeans-11.3-bin-linux-x64.sh

  2. Make your own debian package build using netbeans-php-tools.sh script or install Debian package by Vitex Software:

	sudo apt install lsb-release wget
	echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
	sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
	sudo apt update
	sudo apt install netbeans-php-tools

Package installation update files /etc/php//apache2/php.ini , /etc/php//cli/php.ini by replacing by /usr/share/php//php.ini-development and /etc/php//mods-available/xdebug.ini by adding this lines:

    xdebug.remote_enable = 1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.file_link_format = "netbeans://%f?line=%l"
    xdebug.profiler_enable = 0

This may be ok for fresh system. In other cases Please review and control this changes for your current setup. If installed Nginx,apache or lighttpd package we restart your webserver automatically. In other cases please restart your webserver by hand.

  1. in firefox open about:config and if not exists create new boolean key network.protocol-handler.expose.netbeans with false value. or copy file user.js to your browser profile directory

    cp /usr/share/doc/netbeans-php-tools/user.js ~/.mozilla/firefox/*.default*
    

    and restart browser

    Then if you first time click on netbeans:// link in xdebug error message browser ask you for program for opening this type of adresses. Please choose /usr/bin/nbxdebug

  2. In first time setup use Menu/Tools/Options/Import to get options from file /usr/share/doc/netbeans-php-tools/netbeans-php-config.zip This set up PHP and Color schemes.

    In allready configured netbeans (with PHP support module installed) open Tools/Options/PHP menu and try to click on all [SEARCH] buttons to locate tools on filesystem. If there is no search button installed tool is always located in /usr/bin.

  3. Happy coding, debugging a documenting!

Tools in action

Commands included

  • nbxdebug - browser to ide helper

  • netbeans - run latest netbeans installed ( install current incubating if no netbeans installed )

  • composer56 - run composer under php5.6

  • composer70 - run composer under php7.0

  • composer71 - run composer under php7.1

  • composer72 - run composer under php7.2

  • composer73 - run composer under php7.3

  • composer74 - run composer under php7.4

  • usephp-5.6 - swith current webserver and commandline php to php5.6

  • usephp-7.0 - swith current webserver and commandline php to php7.0

  • usephp-7.1 - swith current webserver and commandline php to php7.1

  • usephp-7.2 - swith current webserver and commandline php to php7.2

  • usephp-7.3 - swith current webserver and commandline php to php7.3

  • usephp-7.4 - swith current webserver and commandline php to php7.4

  • usephp-8.0 - swith current webserver and commandline php to php8.0

  • netbeans-incubating-installer - download && install current incubating

  • phar-composer - transform php project to phar archive

  • phpcbf -

  • phpcpd - Copy/Paste Detector

  • phpcs - code sniffer

  • php-cs-fixer - coding standard fixer

  • php-dev - use /usr/lib/php/*/php.ini-development configuration

  • php-prod - use /usr/lib/php/*/php.ini-production[.cli] configuration

  • phpunit-skelgen

We also recommend install several versions of PHP as described here: https://www.colinodell.com/blog/201711/installing-php-72

Plugins Included