Bug 206592 - Phar support
Phar support
Status: NEW
Product: php
Classification: Unclassified
Component: Code
7.3
All All
: P3 with 14 votes (vote)
: TBD
Assigned To: Tomas Mysik
issues@php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-20 17:10 UTC by Guile
Modified: 2015-09-22 06:06 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guile 2011-12-20 17:10:58 UTC
This would be very useful to have a PHAR support in Netbeans.
* When included with inline code (include "my.phar", require "my.phar.gz"),
The editor should parse the PHAR content for autocomplete <= major enhancement

* When in the "Project" (inside a project directory, or the include path) the PHAR should appear like a directory (with a specific icon?) that contains the PHAR files and then be used for autocomplete.
All the structure is described in the archive manifest.
Right click on the "foldered phar", there is a specific command "Show stub" that open a editor tab with the stub content (with no more __HALT_COMPILER() parsing error)

That would work with compressed phar.
Comment 1 dimi11 2014-09-27 17:56:43 UTC
Is there any new updates regarding this issue?

A few days ago I tried phpStorm IDE and this PHAR integration feature works like a charm.
Comment 2 Tomas Mysik 2014-09-29 05:28:58 UTC
(In reply to dimi11 from comment #1)
> A few days ago I tried phpStorm IDE and this PHAR integration feature works
> like a charm.

Can you please describe what features exactly? Thanks.
Comment 3 dimi11 2014-09-29 08:45:25 UTC
As a resond to https://netbeans.org/bugzilla/show_bug.cgi?id=206592#c2

I would like to include some PHAR library in my php code and after that being able to get autocomplete options from that PHAR lib.

The current situations is that I may include some phar lib but I do not see any functionalities from that lib. Now, when I open phar lib from Projects panel I see its "binary" content which is not useful at all.

Also I would like to be able to browse content of phar library in Projects tree panel.

This link is a good reference how to make PHAR support really useful:

http://blog.jetbrains.com/phpstorm/2013/05/working-with-phar-packages-in-phpstorm/
Comment 4 sallyx 2015-06-10 12:34:57 UTC
I would also like to have PHAR support because of PHPUnit code completion ...
Comment 5 gameshas 2015-06-10 12:40:59 UTC
(In reply to sallyx from comment #4)
> I would also like to have PHAR support because of PHPUnit code completion ...

add your vote, by pressing (vote) next to the priority :)
Comment 6 Tomas Mysik 2015-06-10 12:57:48 UTC
(In reply to sallyx from comment #4)
> I would also like to have PHAR support because of PHPUnit code completion ...

An easy workaround could be to add PHPUnit to your project via Composer - Composer should download PHPUnit sources so then NetBeans can properly scan & index them (so code completion works then). Note: You would likely want to select project specific PHPUnit in Project Properties dialog in this case.
Comment 7 gameshas 2015-09-22 06:06:07 UTC
phar support was added by the netbeans plugin, you can try it out.
http://plugins.netbeans.org/plugin/58816/nbphar

maybe plugin could be integrated into the netbeans by default.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo