Repository navigation
Releases
Releases · samehelhawary/phoxite
Phoxite 0.14.2
- Fixed: the Eloquent model view of a project whose dependencies are not installed
(novendor/) listed no relations and no accessors, as if the model had none. The view
now says that Laravel is not installed and thatcomposer installis needed; the
answer ofphoxite/laravel/modelViewcarries it asframeworkMissing. - Fixed: in such a project the models offered lacked those that extend a class of the
framework other thanModel(User, which extendsAuthenticatable), with nothing
said.phoxite/laravel/generationContextcarriesframeworkMissingtoo, and the
OpenIDEA plugin's Show Eloquent Model… and the model pickers of its Generate…
say why a model may not be listed. - Fixed: in OpenIDEA, the Laravel Routes and Eloquent Model tool windows opened
before the server had started (as when the IDE restores them at start-up) showed
"Phoxite is not running" as an error and kept it until a PHP file changed. The view
now says what it waits for, has a Refresh button, and is read again by itself once
the server reports problems.
Phoxite 0.14.1
- Fixed: saving an open file with Windows (CRLF) line endings was taken for a change
made outside the editor: every save dropped the type caches and inspected every open
file again, and so did closing the file. A save is now recognised whatever the file's
line endings are.
Phoxite 0.14.0
- Class aliases. A class
class_alias('Real\Name', 'Alias\Name')makes (its names
written as strings or asFoo::class) is that class: Go to Definition goes to the
class it stands for, its members resolve and it is no longer reported as undefined.
Class-name completion lists it, as the kind of class it stands for, and Find Usages of
the class includes the places written with an alias (and the other way round). A rename
started on an alias is refused, and renaming the class leaves code written with an alias
as it is. An alias of an alias is followed; a name put together at run time is not.
Thanks to @shoman4eg (#14). - Faster typing in templates. A Blade, Twig or Magento XML file's own problems are
looked for 120 ms after the last change, off the thread that answers the editor,
instead of on every keystroke; completion and cancellations no longer wait behind them. - Framework models read again only when needed. The configuration of a Yii, CakePHP,
Laminas or CodeIgniter project is read again when a file it was read from changes, not
after every edit anywhere. An editor that doesn't report file changes to the server
sees a configuration file changed outside it once the project is indexed again. - An index kept in memory is reported. When a folder's index file is in use (another
window has the folder open) or can't be written, the server says so once; the folder
is then indexed again at each start. - Old caches are removed. The index of a project not opened for 90 days is deleted
from the cache folder at start-up. - Fixed: in a project where Yii is detected too, a CodeIgniter view's variables had
no types. - Fixed: a request the system can't start a thread for fails on its own instead of
stopping the server. - Reference pages:
docs/inspections.md(every inspection's id, severity and
defaults),docs/settings.md(every setting ofphoxite.json) and
docs/frameworks.md(what each framework's support knows), written from the code;
and a design note for Symfony. The README's inspection example named an inspection
that doesn't exist (PhpTypeMismatch); it isPhpParams. - Building from source needs Rust 1.99 (it said 1.96, which no longer built Mago).
- Security:
url2.5.9, for RUSTSEC-2026-0592 (a stack overflow in
Url::origin()on nestedblob:URLs).
Phoxite 0.12.0
- Joomla. In a Joomla site (
libraries/src/Version.php) or an extension opened on
its own (a manifest at its top), the manifests, the language files,access.xml,
config.xml, the forms,joomla.asset.jsonand the SQL scripts are read, once and
again only when one changes. Joomla 6 is the target; 4 and 5 share its layout.- The names PHP strings write are references, each with completion, Go to
Definition, hover and Find References: language constants (Text::_('COM_X_Y')),
layouts (LayoutHelper::render('joomla.content.tags'), a template's override
first), HTML helpers (HTMLHelper::_('behavior.core')), web assets
(useScript('com_x.cart')), extensions (bootComponent('com_content')), events
and the methods handling them (getSubscribedEvents()), ACL actions
(authorise('core.edit')), forms and their fields (loadForm(),
$form->getValue('title')), parameters ($params->get('show_title')), tables
('#__content'), a view's sub-templates (loadTemplate('links')) and the parts of
a URL (Route::_('index.php?option=com_content&view=article')). - A language constant is renamed in PHP, in the language files and in the XML.
- Types:
Factory::getApplication(),bootComponent('com_x'), what the MVC factory
and a controller'sgetModel()make, a view'sget('Items'), a container's
get(Foo::class);$thisin a view's template (its protected properties too), in
a layout and in a site template; a module template's variables; and an event
handler's parameter, from the event it subscribes to. - The XML files, the language files and
joomla.asset.jsonare documents: a label's
constant, a field's type (its class, byaddfieldprefix), a layout, an ACL action
and an asset have Go to Definition, hover, Find References and completion. - Inspections:
PhpUndefinedJoomlaLanguage(a constant of the file's own extension
that no language file has) andPhpUndefinedJoomlaLayout. - A class file moved inside an extension gets the namespace its manifest gives the
folder.
- The names PHP strings write are references, each with completion, Go to
- Magento 2. In a Magento project (
app/etc/di.xml, Composer installing
magento/framework, or a module opened alone) the modules' XML is read:di.xml,
events.xml,acl.xml,system.xml,config.xml,extension_attributes.xmland
the layout files, of the modules underapp/codeandvendorand of the themes. It
is read once and again only when an XML file changes.- The names PHP strings write are references, each with completion, Go to Definition
into the XML, hover and Find References (the XML declarations are listed): events
(dispatch('checkout_cart_add_product_complete')), configuration paths
(getValue('wishlist/general/active')), ACL resources
(isAllowed('Magento_Wishlist::config_wishlist'),const ADMIN_RESOURCE),
templates (setTemplate('Vendor_Module::cart.phtml'), a block's$_template; a
theme's version first), layout handles (addHandle()), blocks by name or alias
(getBlock('customer.wishlist'),getChildHtml('items')) and modules
(isEnabled('Vendor_Module')). - The classes Magento generates are known without a
generated/folder:
FooFactory(create()returnsFoo),Foo\Proxy,Foo\Interceptor, and the
FooExtensionInterfaceofextension_attributes.xml, with a typed getter and
setter per attribute. They are no longer reported as undefined classes. - Types:
$objectManager->get(Foo::class)andcreate(), a virtual type's name
among them; a data object'ssetFoo()returns the object andhasFoo()abool;
in a.phtmltemplate$blockis the block class the layout XML gives the
template, with$escaper,$secureRenderer,$thisand the block's view model
($block->getViewModel(),getData('view_model')). - A plugin's
beforeSave(),afterSave()andaroundSave()go to thesave()they
intercept. - Inspections:
PhpUndefinedMagentoTemplate,PhpUndefinedMagentoAcl,
PhpUndefinedMagentoModuleandPhpUndefinedMagentoPluginMethod. Events and
configuration paths are never reported: both are used without being declared. - The XML files are documents too: in
di.xml,events.xml, a layout file,
system.xml,webapi.xmland the others, a class, a method, a virtual type, an
event, an ACL resource, a template, a block or a handle has Go to Definition, hover
(a class with its preference for the file's area and its plugins), Find References,
completion and rename. A class that doesn't exist and a template whose file isn't
there are reported (MagentoXmlUndefinedClass,MagentoXmlUndefinedTemplate). - Find References on a class lists the XML naming it; renaming the class or moving
its file updates the XML and the GraphQL schemas. Find References on a method lists
the plugin methods intercepting it, and its hover names them. - Renames across PHP and XML: an event, a block's name, an ACL resource, a template
(its file moves, in the module and in the themes). - Three more names: URL paths (
getUrl('wishlist/index/add')goes to the action's
class, byroutes.xml), tables and columns ofdb_schema.xml
(getTableName('wishlist'),_init('wishlist', 'wishlist_id')). - An area's
di.xmlwins over the global one where the area is known, and a
template is looked for in a theme before the themes it inherits from.
- The names PHP strings write are references, each with completion, Go to Definition
- Laminas MVC and Mezzio. In a Laminas or a Mezzio application (Composer installs
laminas/laminas-mvcormezzio/mezzio) the configuration is read where it is
written: each module'smodule.config.php,config/autoload/, theConfigProvider
classesconfig/config.phpaggregates, and Mezzio'sconfig/routes.php. The names its
strings write are references: routes ($this->url('home'),
redirect()->toRoute('blog/post'),UrlHelper::generate('api.ping'); a child route is
parent/child), templates (setTemplate('application/index/list'),
partial('partial/row'),render('app::home-page'), the keys oftemplate_map),
services ($container->get('mailer')), controller plugins and view helpers
(plugin('greet')), actions ('action' => 'show'↔showAction()of the controller
beside it or of its route) and configuration keys
($container->get('config')['db']['host']). Each completes, goes to what it names and
has a hover and Find References.- Types:
$container->get('mailer')is what the configuration makes: an alias is
followed, an invokable is its class, a factory is what its__invoke()returns;
$this->greet()in a controller and$this->price()in a template are the
configured plugin and helper (what calling them returns), Laminas's own among them;
$thisin a.phtmltemplate is the renderer. Plugins and helpers complete as
methods. - A template has the variables its action gives its view model
(new ViewModel(['post' => $post]),setVariable()), a Mezzio template what
render()passes, a partial whatpartial()passes, with their types. - Inspections for a name that names nothing:
PhpUndefinedLaminasRoute,
PhpUndefinedLaminasTemplate,PhpUndefinedLaminasServiceand
PhpUndefinedLaminasAction. - More of an application is followed: the form element, validator, filter, hydrator
and input filter plugin managers ('validators' => [['name' => 'StringLength']],
$form->add(['type' => 'text']),$validators->get('Isbn')), delegators and
factories written as closures, aModule'sgetServiceConfig()and its kin, a
configuration held in a variable ($config['db']['host']), a route's parameters
(url('post', ['id' => 1])), navigation containers, the layout's variables
($this->layout()->setVariable()) and a child view model's, and the variables of
a Twig template in Mezzio. Zend Framework 2 and 3 and Zend Expressive projects are
read the same under their old class names.
- Types:
- CakePHP 4 and 5. In a CakePHP application (Composer installs
cakephp/cakephp, or
the project hasbin/cake) the names its strings write are references: tables
(fetchTable('Articles'),belongsTo('Authors'),'className' => 'Blog.Tags'↔
ArticlesTable), components (loadComponent('Flash')), helpers (loadHelper('Form'),
$helpers), behaviours (addBehavior('Timestamp')), associations
(contain(['Authors', 'Comments.Users'])), templates (render('edit'),
setTemplate()), layouts (setLayout('admin')), elements (element('sidebar')),
cells (cell('Inbox::expanded')), configuration keys (Configure::read('App.encoding')
↔config/app.php), named routes ('_name' => 'login') and route arrays
(['controller' => 'Articles', 'action' => 'view'],'Articles::view'↔
ArticlesController::view(), under theprefixand in thepluginbeside them).
Plugin dot notation everywhere. Each completes, goes to what it names and has a hover
and Find References.- Types:
fetchTable('Articles')and$this->ArticlesinArticlesControllerare
ArticlesTable; itsget(),newEmptyEntity(),save()andfind()->first()are
anArticle(the entity of the table's name, or whatsetEntityClass()names),
find()->toArray()andpaginate()hold them;$this->Articles->Authorsis the
association andAuthorsTable;$article->authoris anAuthoror null and
$article->commentsa list;$this->Flashis the component the controller or
AppControllerloads;$this->Htmlin a template is the helper. They complete as
members and go to where they are loaded. CakePHP 5's own generics are kept where
they already say the class. - A template has the variables its action sets (
set('article', $article),
set(compact('article'))), with their types, and whatbeforeRender()of
AppControllersets; a cell's template and an element have theirs.$thisin a
t...
- Types:
Phoxite 0.10.0
- PHP 8.6. It is the version of a project that names none, and the built-in
declarations are those of phpstorm-stubsv2026.3, which has what 8.6 adds
(Time\Duration,clamp(), the URI builders, the stream errors and polling APIs…).- Partial function application:
f(?, 1),f(name: ?)andf(1, ...)are closures
of the parameters left open, with the callee's return type, so calling one, passing
it and piping into it ($x |> f(?, 2)) are typed. A?is a required parameter
whatever its default, a named one moves its parameter, and...adds the rest as
declared. Signature help and parameter-name hints work inside its arguments, and what
it binds is checked as a call's arguments are; without...a required parameter
with neither an argument nor a placeholder is reported. PhpLanguageLevelreports the syntax of 8.6 in a project on an older version: partial
application, a default value on a readonly property,#[\Override]on a class
constant or an enum case, and__debugInfo()on an enum.- New inspection
PhpDeprecatedSyntax, for what 8.6 deprecates in the code itself:
returnin afinallyblock, a value returned from__construct()or
__destruct()(or either as a generator), a function namedreadonly,letandis
as names,_as a constant's name, a class constant namednamespace, the third
argument ofdefine(), and?arrayas the return type of__debugInfo(). Silent
below 8.6. - A built-in that a later version deprecates (
#[Deprecated(since: '8.6')], such as
mysqli_get_charset()) is no longer struck through in a project on an older version.
- Partial function application:
Phoxite 0.8.1
- Compact array shapes in type inlay hints. An array shape now reads
arrayin a
hint:array{…}|array{…}is onearray,array{…}|stringisarray|string. The
hint's tooltip and the hover keep the full type, and nothing changes in what is
inferred, completed or reported. To see the keys and their types in the hint as before,
setinlayHints.arrayShapestofull(phoxite.inlayHints.arrayShapesin VS Code, or
in a project'sphoxite.json). The hints are asked for again when the setting changes,
in a client that takesworkspace/inlayHint/refresh
(#2).
Phoxite 0.8.0
- CodeIgniter (4, and 3). In a CodeIgniter application the names its helper functions
take are references: views (view(),$this->extend(),$this->include(), a
module'sBlog\Views\list), helpers (helper(),$helpers), language lines
(lang('File.key')), routes (route_to(),redirect()->route()↔ theasof a
route, its path when it has none, or its handler), filter aliases ('filter' => 'auth'
↔Config\Filters::$aliases), configurations, models, services, view cells
(view_cell('Card::render')), events (Events::on()↔Events::trigger()),
validation rules (each rule of'required|min_length[3]'↔ the methods of the rule
sets) and rule groups, tables and columns ($db->table('books'), a model's$table
and$allowedFields,->where('title', …)↔ the migrations), and a route's handler
('Books::show/$1', in the namespace of its group). Each goes to what it names and has
Find References and a hover; a route name, a filter alias and an event are renamed.- Types:
service('name'),model('BookModel')andconfig('App')are the service,
the model and the configuration class; a model'sfind(),first()andfindAll()
follow its$returnType;$db->table('books')is a builder of that table. - A view has the variables its controller passes it, with their types
(view('books/list', ['books' => $books])), as have the layout it extends and the
views it includes. They aren't reported as undefined. - Inspections for a name that names nothing:
PhpUndefinedCodeIgniterView,
PhpUndefinedCodeIgniterHelper,PhpUndefinedCodeIgniterLanguageLine,
PhpUndefinedCodeIgniterRoute,PhpUnknownCodeIgniterFilter,
PhpUndefinedCodeIgniterController,PhpUnknownCodeIgniterRule,
PhpUnknownCodeIgniterRuleGroup,PhpUndefinedCodeIgniterModel,
PhpUndefinedCodeIgniterConfig,PhpUndefinedCodeIgniterService,
PhpUndefinedCodeIgniterCell. Off unless turned on, as what they look for may be
defined outside the project:PhpUndefinedCodeIgniterEvent,
PhpUnknownCodeIgniterTable,PhpUnknownCodeIgniterColumn. - Several columns in one string (
select('title, price')), a column in an expression
(where('COUNT(price) >', 3)), the table and field ofis_unique[books.title], the
routesresource()andpresenter()make, and a path (site_url('books/show'),
redirect()->to(): its route, else the method auto-routing would call) are names too. - Modules (the
$psr4ofConfig/Autoload.php, Composer's namespaces) bring their
views, helpers, language files and routes;Config/Paths.phpsays where a moved
app,systemor views folder is. - CodeIgniter 3:
$this->load->view(),->model(),->library(),->helper(),
$this->lang->line(),$this->config->item()and the path ofsite_url()and
redirect()are references;$this->load,$this->db,$this->session, a loaded
model (under its own name or another) and a library of the application are typed in
controllers, models and views; a path goes through the routes ofconfig/routes.php;
the tables and fields ofapplication/migrationsare the names of$this->db's
methods.
- Types:
- A property a framework gives a class isn't reported as undefined, and a string in PHP
embedded in markup (<a href="<?= site_url('books') ?>">) is found where it was taken
for part of the attribute. - An inline
/** @var Type $name */declares a variable that nothing in the file sets
($routesat the top of a routes file), instead of only retyping one that exists. - Drupal (8 and later). In a Drupal site, or a module or theme opened on its own, the
names its YAML files declare are references: services (\Drupal::service(),
$container->get()), routes (Url::fromRoute(),redirect(),setRedirect()),
permissions, libraries ('#attached' => ['library' => […]]), configuration and
modules. So are the entity types and plugins that attributes and annotations declare,
the theme hooks ofhook_theme()('#theme' => '…', with the template), and hooks
(invokeAll(),alter(),#[Hook]↔ thehook_…()function). Each completes, goes
to its declaration, has Find References and a hover; services, routes, permissions and
libraries are renamed with the YAML files that name them.- Types:
\Drupal::service('id')and$container->get('id')are the service's
class;getStorage('node')is the entity type's storage, and what it loads is the
entity; the parameters of a hook's implementation (mymodule_form_alter(), a method
with#[Hook]) have the types the hook's function gives them. .module,.install,.theme,.profile,.engineand.incfiles are PHP: they
are indexed, the server watches them, and the VS Code extension opens them as PHP.- The
templatesfolder of a module or theme is the Twig namespace of its name
(@shop/card.html.twig). - The YAML files are answered in too: Go to Definition, hover, Find References, Rename
and completion on the services, routes, permissions and libraries they name, and
Go to Definition on their classes and controller methods. The server asks the client
for*.ymlfiles only while a Drupal project is open. - Configuration keys (
\Drupal::config('shop.settings')->get('mail.from')), the
plugins a links or layouts file declares, derivative plugin ids, theme hook
suggestions (node__article) and the preprocess functions of a theme hook. - Go to Definition on the name of a function implementing a hook goes to the hook.
- A template completes the variables its theme hook declares, and
attach_library('…')in it is a library. *.api.phpfiles, which document hooks as empty functions, no longer report unused
parameters.- A template's variable has the type a preprocess function assigns it
($variables['book'] = …), so{{ book.title }}completes. - A configuration only a schema describes (
config/schema) has its name and keys;
migrations and breakpoints are plugins; a#[Hook]on a class types the method it
names. - In a YAML file, a line is read under the key above it (list items, bracketed lists
over several lines),service.id:methodis a service and its method, and class
names complete afterclass:and_controller:. - Drupal 7: a site or a module with a
.infofile is detected;module_invoke_all(),
drupal_alter(),theme(),user_access()andmodule_exists()name hooks, theme
hooks, permissions (hook_permission()) and modules, and a hook's implementation
is typed and goes to its hook. - More of Drupal 7: menu paths (
drupal_goto('admin/shop')↔hook_menu(), also
through%placeholders), variables (variable_get()↔variable_set()), a form's
function indrupal_get_form(), and its.infofiles (dependencies[],files[]). ->get('key')on a configuration has the type its schema gives the key; a template's
variable has the type a render array passes it ('#book' => $book).- In a YAML file, a mapping in braces and an alias (
*defaults) are read. - Database tables:
db_select('node')and the connection'sselect(),insert()…
go to the table's entry inhook_schema(), and a column of a query
($query->condition('n.nid', 5),->fields('n', ['title'])) goes to its field
there and completes, along a chain of calls and through the alias of a joined table
(u.uidafter->join('users', 'u', …)). - A configuration key also takes its type from the value a file installs; a render
array built up in a function ($build['#book'] = $book) types its template's
variable. - Nothing of Drupal is bundled.
- Types:
- The YAML reader follows anchors and aliases (
&defaults,*defaults) and merges
<<: *defaults: a Symfony or Drupal service defined that way has its class. - A callback under a key named as one (
callback,…_callback,…_cb,page callback) is a callable in any array, not only one that is a call's argument:
$items['x'] = ['access callback' => 'my_access'];. - A string under a key of an array can be a reference wherever the array is written
(CalleePattern::Entry): Drupal's render arrays use it. - WordPress. In a WordPress project (its core, a plugin or a theme), the names
WordPress keeps in its registries are references: hooks (add_action('init', …)↔
do_action('init'), filters alike), shortcodes, post types, taxonomies, script and
style handles, options, image sizes, menu locations, blocks (registered in PHP or
declared by ablock.json) and REST routes (rest_url('shop/v1/books')↔
register_rest_route('shop/v1', '/books'), patterns in the route included). A
list of names counts where one is taken (is_singular(['book', 'page']),
'post_type' => ['book']). Each completes, goes to the
call that fires or registers it, has Find References and a hover, and is renamed when
the project declares it itself (not a name of WordPress or of a library). A hook fired
under a name put together at run time ("save_post_{$post->post_type}") is found by
its pattern.get_template_part('template-parts/content', 'page')goes to the theme's file and
completes the theme's templates. So doget_header('shop'),get_footer(),
get_sidebar(),locate_template(),get_theme_file_path()and
get_theme_file_uri(). A child theme's file is looked for first, then its parent's.- Find References lists the project's scripts too, searched as text: a block's name, a
REST route's path, and theactionof an AJAX request for itswp_ajax_…hook.
Renaming a block, the last part of a REST route or the action of an AJAX hook
changes PHP, the scripts and theblock.json. - In a script and in a
block.json, a string naming a block, a REST route or an AJAX
action has Go to Definition, hover, Find References, Renam...
Phoxite 0.6.1
- An include path brings what its
composer.jsonautoloads: the one at the top of the
folder, and, for an include path that is a Composervendorfolder, the one of the
project beside it. With../vendorlisted, a"Services\\": "PaymentGateway/"rule
of../composer.jsongets../PaymentGatewayindexed without listing it. The PHP
version and theext-*stubs still come from the project's owncomposer.json. - The description of
phoxite.includePathssays that it takes single files too
(../../config.php), not only folders.
Phoxite 0.6.0
- A file the indexer can't read without failing is left out, and the rest of the project
is indexed. Indexing that fails as a whole is tried once more, then reported with a
message instead of an "Indexing PHP" progress that never ends. - A setting whose value doesn't fit (a number where a text is expected, an unknown
choice) keeps its default and is named in a message. The other settings apply; before,
one such value put every setting back to its default without a word. - The PHP version and the
ext-*requirements are read again whencomposer.json
changes, and by Index the Project Again: no restart after raisingrequire.phpor
adding an extension. - A project can carry its settings:
phoxite.jsonat its root holds the settings an
editor would send, wins over them key by key, and is followed when it changes. It
can't setanalyzersorlaravel.database, andincludePathsonly in a trusted
workspace. VS Code completes and validates the file, andide.jsontoo. - A changed severity of an inspection shows at once, not with the next edit of the file.
- Property hooks (PHP 8.4) are understood inside:
$valueof asethook has the
property's type (or the hook's own parameter its declared one), completion, hover and
go to definition work in a hook's body, undefined and unused variables are reported
there, and what agethook returns is checked against the property's type. Before,
a hook's body was read as part of whatever was around the class. - Two inspections for members that exist but can't be used where they are. Inaccessible
member (PhpInaccessibleMember): a private or protected method, property or class
constant used from outside the classes allowed to, and a write to aprivate(set)or
protected(set)property (PHP 8.4). Readonly property written outside its scope
(PhpReadonlyPropertyWrittenOutsideDeclarationScope): its class, and from PHP 8.4
its subclasses. They report what fails for certain and stay quiet where magic methods,
a trait, a bound closure or a subclass that widens the member could make it work;
"strict": trueadds union receivers and closures inside classes. phoxite-lsp check [PATH...]inspects a project from the command line: the problems of
its own PHP files and Blade templates as text, JSON, SARIF 2.1.0 or GitHub annotations
(--format), and an exit code for CI (--fail-on error|warning|never). It reads the
project'sphoxite.json.
Phoxite 0.4.1
- The notices and the documentation describe Phoxite as a standalone engine, with Sameh
Elhawary as its author. - The index is rebuilt once after the update: its stamp was renamed.
- The
ide.jsonschema id isphoxite://schemas/laravel-ide-json.json.