Support for some small features.
- Smart delete (Ctrl + Shift + BACK_SPACE)
- Generate dummy text (Alt + Insert > Dummy Text)
- Generate dummy image
- Convert to PHP short array syntax
- Typing hooks
- Code completion
- Convert String to Html entities (name entities)
- Convert Html eltities to String
This feature delete string between "" or '', variable name.
e.g.
<?php echo "your message";?> -> <?php echo "";?>
e.g.
<?php $somethingVariable;?> -> <?php $;?>
We can use this feature on PHP and Html editors. Please set base text on the Dialog. It will be looped with option.
- loop count
- text length
We can generate a dummy image with this feature to specific folder.
Please right-click a folder > Generate dummy image
Convert array() to []. Right-click (file|directory) > Convert to php short array syntax
If you want to enable this feature, Please check Options(Tools > Options > PHP > Enhancements).
This is avaible with the following operators:
- Object operator ->
- Double arrow operator =>
e.g. type $this-
=> $this->
, type array('key' =)
=> array('key' =>)
$this->property;
$array = array('key' => 'value');
$a = ["foo" => "bar"];
$f = fn() => "arrow function";
$result = match ($condition) {
1, 2 => foo(),
default => bar(),
};
- If you want to type
==
, please type=
after=>
. - If you want to type
=
, please delete>
. (It's difficult to handle all cases correctly...)
Please check Tools > Options > PHP > Enhancements
- Change name for
define
,defined
andconst
to uppercase name
- multibyte functions (e.g. mb_convert_encoding())
- header
- ini_set, ini_get, ini_alter, ini_restore
- date_default_timezone_set
- date, date_format
- Datetime::format, DateTimeImmutable::format
- htmlentities, htmlspecialchars
- session_cache_limiter
Please run code completion (Ctrl + Space) inside quotes.
e.g.
<?php
ini_get('here');
date("here");
- https://github.com/junichi11/netbeans-php-enhancements/releases (github releases: contains old versions)
- https://plugins.netbeans.apache.org/catalogue/?id=29 (Plugin Portal)
Apache License, Version 2.0