The best intellisense support for PHP in VS you will find. Yes, there are PHP specific IDEs that may do much better job, but if you want/need to use your Visual Studio with PHP, PHP Tools for VS is exactly what you're looking for.
Thank you so much for your great review! We're very glad that PHP Tools have satisfied your demands.
About zooming feature.... The setting of zoom is by default page specific in VS. What you can do is to change font setting in VS globally ( https://msdn.microsoft.com/en-us/library/ms165337.aspx ). This can be also done for debug windows font size.
The product is superb - excellent intellisense, debugging and code snippets.
I'm very happy to pay for good quality software and this is the right price.
One feature I have asked for is for the GUI to highlight unused and uninitialized variables, and they tell me this is in the pipeline. It's good to know this is under active, current development. *Update Feb 2015: This has now been implemented in 1.15 and is very good indeed, thank you!
I this, we use in Visual Studio Professional 2012 Update 4. Version you are using is 1.14.5747.2012.
This is a great application that does not impair the operation feeling of VS. However, there are some drawbacks, it is a personal sorry.
• In order to "Ctrl + M, Ctrl + L" of VS function does not work, it is not easy to switch between outline. • In intellisense of method, description of the return value is not out. • File when you have opened, all outline will be deployed, it does not return to the state it was in when you close the document. • Class, when folded comments of methods, all is "summary".If possible, I want to display the first line of the description. • Not multi-localized difference. I hope the Japanese.
And if possible, I want you to solve these problems that plague me. I am looking forward to the further growth.
Thank you very much for your review and suggestions on particular features!
1.) 1.15 has Ctrl + M + L support 2.) 1.15 supports this 3.) This is unfortunately outside of our control. We're using Visual Studio HTML editor which does this. You could always turn off Visual Studio HTML support and then it will be using our basic HTML support which supports this feature ( Tools | Options | PHP Tools | Advanced | Enable HTML Editor in PHP files => FALSE ) 4.) Supported in 1.15 release 5.) Currently we just support English. We'll take a look at localization in close future.
This a very good product. Sadly I can't give it the 5 stars I want to, as the ability to change how code is formatted is not present. I like to customize how my code is formatted (curly braces on a new line, etc.) but this is absent.
Add the ability to change how code is displayed, see how PHP Storm handles it as a good example, and you will have a fantastic product, instead of just the very good one which it currently is.
As a .NET developer I recently decided to put together a web site using AngularJS and PHP.
I purchased a copy of JetBrains PhpStorm as I have their brilliant .NET tools. I have not been able to get the debugging to work as I would like it to - like it does in Visual Studio.
I stumbled across PHP Tools for VS whilst looking for something else and decided to give it a try. Three days later I have bought a licence!
I can now develop PHP, a language I am not that fluent in, within Visual Studio, an IDE I have used daily for 8 years and the debugging capability is amazing. If feels so natural to hover over a var and the current value pop up.
Being able to debug PHP as I would C# saves a massive amount of time.
This is only a hobby site I am working on but my productivity has shot through the roof by using this tool!
Installers beware!! The uninstall doesn't work if you can't contact their activation server. In my corporate environment, much of the internet is blocked (including their activation server) and now, after installing and realizing I can't activate a trial, I can't successfully uninstall it (the uninstall fails at the end with an error box and then it rolls back).
Bad form, DEVSENSE. I thought we were past all such childish ways.
(I would put no stars, but Microsoft is giving you 1 star for nothing)
(scrolling through the comments below, I will check this document: http://www.devsense.com/doc/phptools/installation/uninstallation to see if I can get things cleaned up).
(or I guess I won't. When trying to access the document to explain how to manually uninstall, I get: "Geolocation Filter of of McAfee Web Gateway. The URL is listed in a country that is not allowed by your administrator at this time." ) Not their fault, but it's now my mess to cleanup).
Hi, I have tested the extension. But there are many things that are missing. - Refactoring - IntelliSense by database (project database ... table, fields) - Drag and drop items from project explorer, eg: in php: include, require file with path in html img tag src value: path to this resource - Add Framworks (php, js)
There's also an error in private member variables. These are displayed by the intellisense / codecompletition on an object variable.
This extension has just BEATA-STATUS.
Take a look at NetBeans, PHPEdit, PHPEd for functionality.
I'am working with PHP Tools for several month now, enjoying the seamless integration into Visual Studio. Each time after having installed an update I'm looking for the well known 'refactor' menu item in the context menu. At least a support for renaming shouldn't be too hard to implement and I think it would be appreciated by most developers.
This extension is great. We have the paid version and the debugging works really well. My comment would be that large projects take quite a while to load in when a PHP project is created and has files added. Can it be made to defer processing of PHP files so all folders and files can be loaded into the solution explorer first?
I installed the latest photos Dev tools in
VS2013 update 4 however I didn't have any highlighting when I opened my functions.php file. Checked the php editor settings and the editor is enabled.
I use VS for .NET stuff, and PHPStorm for php. I chose PHPStorm because of its support for the Yii MVC framework. I still like the IDE of VS better, but does PHP Tools support MVC frameworks? If so, how do I make it work 'best'?
You can install Yii using Composer (http://www.devsense.com/doc/phptools/projects/composer) and use it as described at Yii documentation. Since there is no special syntax for Yii views, PHP Tools will handle it as any other PHP code you would write.
Are there any Yii-specific features you would like?
at first i want to say thanks for your brilliant extension
i,m going to use design wordpress themes in VS using this Extension but i don't know how to set values in wp-config file
i mean the following part:
/** The name of the database for WordPress */
define('DB_NAME', 'database name');
/** MySQL database username */
define('DB_USER', 'user name');
/** MySQL database password */
/** MySQL hostname */
to connect to the mysql database
Thanks in Advance
You can run Wordpress from Visual Studio (Ctrl+F5), make sure your PHP Web Project has index.php setup as startup file. Then wordpress itself will guide you through the configuration and create wp-config.php file directly in its root. No need to copy it.
There is a video from youtube showing some basic stuff with Wordpress and PHP Tools, you can take a look here https://www.youtube.com/watch?v=otfHuSzxYnw
i've seen that video and i don't have any problem to manually make config file,on that video did't speak about config file and just showed how to import wordpress files to VS nothing more.
all i want to know is how to connect to my sql databases to make it happen. you've told me to let wordpress do make it for me "all wordpress is doing is filling some parts on wp-config file,nothing else"
i've tried every thing, it seems vs can not access to the mysql databases(i even tried to change the php path on Tools>options>php Tools) and it didn't worked either
If your MySql is installed and php is configured to use mysql extension, there really shouldn't be any issue when php is connecting to your database. Please do make sure the database exist (you have to create it manually in your mysql).
Then wordpress install will create necessary tables if it's able to connect to it.
VS actually doesn't connect to mysql at all, but you can install MySQL connector for Visual Studio (comes with MySQL installer) to help you manage your database. This is optional however.
There are detailed instruction how to install Wordpress https://codex.wordpress.org/Installing_WordPress
I am using the trial version of the PHP tools for the VS 2015 CTP. I am doing the following:
1. Create new PHP Web Project.
2. Pull in Laravel 4.2 using composer.
3. Open a new file and start typing Route::get().
4. Route is altered to route, the method is not being autocompleted and IntelliSense seems confused.
Am I doing something wrong here, or is this a limitation of the free version?
I'm upgrading PHPTools 1.14.5747 to the 1.15.
I'm using VS2013 update 4
After installing there is a problem loading extension.
Here is my ActivityLog.xml from visual studio.
<description>CreateInstance failed for package [PHP Tools for Visual Studio Package]</description>
<errorinfo>Kan bestand of assembly file:///-----\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\DEVSENSE\PHP Tools for Visual Studio 2013 1.14.5747\PHP.VS.dll of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.</errorinfo>
<description>End package load [PHP Tools for Visual Studio Package]</description>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Kan bestand of assembly file:///----\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\DEVSENSE\PHP Tools for Visual Studio 2013 1.14.5747\PHP.VS.dll of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.</errorinfo>
It seams version 1.14 was not uninstalled properly. Try to delete folder ..\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\DEVSENSE\PHP Tools for Visual Studio 2013 1.14.5747\ and reinstall 1.15.
I have MVS 2013 Update 4 - russian localization.
When i start "PhpTools.1.15.7721.msi" - Error - Wrong packet go to vendor...
Any solutions ?
I cant change language of MVS (no other language installed).
Sorry for bad english.
Can you please try to run setup with log?
msiexec /l*v "log.log" /i "PhpTools.1.15.7721.msi"
and send us the log.log file to email@example.com
We'll try to figure out what is wrong ...
I know I mentioned this before in a previous release. But I'm currently using 1.14.5757 and when I click on SOME of my class functions, visual studio pauses for 10-20 seconds, then says "Not Responding" and then comes back like nothing happened.
And when I click on the function again, it does it all over again. I'm now scared to click on ANY function name, knowing that I may be stuck for 20 seconds every time I do that.
An example of a function would be something like:
$result = $school->get_student_fee_assigned_history($entity->guid);
Clicking on get_student_fee_assigned_history is a nightmare for me! I'm assuming it's because it's looking for the definition to popup the tooltips box. I don't really care about that feature.
Can you PLEASE release a version where it doesn't do that look up for functions? It's faster for me to doubleclick the name, press CTRL+SHIFT+F and then type:
"ion get_student_fee_assigned_history" to find the function in my code.
this is SUPER fustrating, and I might have to go back to your previous versions which don't have this, so I don't get so annoyed, which also annoys me since I'm paying for a yearly licence and I'll have old code.
I love Visual Studio. I use it since 2006 for c#, asp, WinForm project, etc.
Is PHP tools have this features ? :
0) Web Servers integrated (Apache, nginx... mysql)
1) CONTROL + K + D indentation for all documents
2) Live edit over FTP
3) Publish over FTP the file projet
4) MySQL Integration (design tools, binding, etc..)
5) Integration of some platform like Drupal or Wordpress (intellisence and debug)
We're glad you like our tools!
0) Currently, you can select from builtin PHP server and IIS Express. Other servers have to be configured manually and can be used as well.
1) Formatting all the documents within project can be done using some 3rd party extension. It is not native feature of Visual Studio as I know.
2) VS does support live edit over FTP, but you won't have full IntelliSense and some operations may take some time. More at http://www.devsense.com/doc/phptools/projects/existing-web-site . I would recommend to use projects, have files locally and publish files automatically.
3) Publish over FTP is supported. More at http://www.devsense.com/doc/phptools/projects/publish
4) MySQL is supported using 3rd party extension from Oracle.
5) Drupal, WordPress and other frameworks are supported; you will have IntelliSense, debugging and other features. There are no predefined file and project templates yet.
6) Other language frameworks are handled until VS supports them. Currently PHP Tools rely on legacy HTML Editor which needs additional steps to make angular working (http://madskristensen.net/post/angularjs-intellisense-in-visual-studio-2012). In future it will work out of box.
I also want to second that this is a wonderful tool. The one thing that I could really use is the ability to publish by folder and/or file.
I want to be able to use the Intellisense for all of WordPress, but if I exclude everything but the theme (all I really want to publish), I can't get Intellisense. If I keep everything but the theme, I have to publish everything - meaning I can't update WordPress on the server without also updating it in the project, and same goes for plugins, etc.
It would make my life a ton easier if I could just publish the themes folder! Any word on when that functionality possibly be included at some point in the future?
There are couple of ways how to achieve what you want.
1. Once you have publish profile created, publish selection feature get enabled. So when you right click on the file/folder you can publish just that node.
2. You can create two projects:
- Project A: Wordpress
- Project B: Theme
- Create project reference in ProjB to ProjA, so you'll get the Intellisense there. - Setup publishing for ProjB.
For debugging to work properly in this setup, check this http://support.devsense.com/viewtopic.php?f=21&t=1171&p=6241&hilit=wordpress+plugin+reference#p6241