Symfony and PHPStorm

As already mentioned I’am playing around with Symfony 2 at the moment and of course I want to use my favorite IDE: PHPStrom.

I was not surprised that integation into PHPStorm is very good:

So for setting up follow this guide.

Also a plugin is available but for me it does not bring that much extra use.

For me the only pitfall was that I was not used to copy assets to the webfolder by assets:install (not needed when using assetic). And this took me quite a while.

But still form my point of view there is at the moment no better IDE for PHP development than PHPStorm, also when working with Symfony 2.

GD Star Rating
loading...

Testing with angular, Karma and Webstorm

So, probably my last post for this year. I’m back to Javascript and agular. 😉 Any book about angular.js tells that testing is super easy. And of course I also believe in the tale of TDD or at least in writing some tests 😉

So I tried to set up an working test environment within my IDE: Webstorm 7.

So a good points to start are a blog article about karma testing in webstorm 7 and of course the jetbrains confluence page.

My main problem was to set up a working karma config file and get the right order of includes to be able to test my application even with angular from CDN.

So my karma.conf.js finally looked like this.

Next step is to right a test for your angular app. This should give you a little impression how it might work. For me it was not that easy understandable how to load modules and how to inject the stuff.

For me next steps are to test controllers and do testing with more dependent components. But at least my service layer can be tested in such manner easily.

So finally I wish everbody a happy new year!

GD Star Rating
loading...

Using MongoDB with Xampp

After some fighting I managed to use MongoDB with PHP 5.5 in Xampp on Windows 7.

The important thing is to use the most current binary and copy from the archive the thread safe 32  bit version into the ext folder.

After that just add extension=php_mongo-1.4.5-5.5-vc11.dll  to your php.ini.

This also works with the built in webserver from PHP triggered from PhpStrom.

 

GD Star Rating
loading...