Skip to content

Open Source

Doctrine2 support added

NetBeans for PHP weblog - Mon, 01/30/2012 - 14:52

Hi  all, today we would like to inform all the Doctrine2 PHP ORM framework users that their favorite framework is now supported in NetBeans.

First, as always, be sure that NetBeans knows about your Doctrine2 installation:

Docrtine2 IDE Options

If you have installed Doctrine2 via PEAR, the Doctrine2 script will be detected automatically.

Next, you need to tell NetBeans that your existing PHP project uses Doctrine2 - open Project Properties dialog and enable its support.

Enable support for Docrine2

Now, you will be able to run Doctrine2 commands right from the IDE. Please notice that the project now has a Doctrine2 badge icon.

Run Doctrine2 Command

All the possible Doctrine2 commands will appear.

Doctrine2 Commands

They can be run the same way as for the other supported frameworks. It means also that the output of the invoked command will be available in the Output window.

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component php, subcomponent Doctrine).


Categories: Open Source

DBAL/ORM 2.1.6 released

Doctrine Blog - Sun, 01/29/2012 - 23:02
We released a new round of maintenance releases for the 2.1 branch. DBAL and ORM are now in version [...]
Categories: Open Source

Doctrine 2.2 released

Doctrine Blog - Sun, 01/29/2012 - 20:00
We released Doctrine 2.2 today. A top list of the new features includes: Filtering entities and a[...]
Categories: Open Source

Identical Comparison Hint

NetBeans for PHP weblog - Tue, 01/24/2012 - 16:18

Hi everybody! Today we would like to introduce you some of our new hints. This one is called Identical Comparisons and checks whether you use more strict identical comparison instead of simple equal comparison. If not it suggests you to change it to identical one.

If you don't know what is the difference between identical and equal comparisons, you can read it in official PHP manual.

And because we know, that sometimes there is a use case when you should use just equal comparison, this hint is row sensitive. It means that well known hint bulb will appear only if you are on the row with comparison. So no yellow warning triangle will scream on you ;) This hint just wants to help you :)

But there is just another advantage of this hint. It can change your "==" sign to "===" as you certainly expected, but it can detect the type of the right hand side variable and make a type cast for you too!

Identical Comparisons

That's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (component php, subcomponent Editor). Thanks.

Categories: Open Source

DBAL and ORM 2.2 Release candidates

Doctrine Blog - Sun, 01/22/2012 - 18:18
Again with a slight delay we finalized the DBAL and ORM release candidates for the 2.2 branch. There[...]
Categories: Open Source

PHP 5.4 Support: Array Dereferencing

NetBeans for PHP weblog - Thu, 01/19/2012 - 04:07

Hi all! As I wrote in my last blog post, this year is the year of PHP 5.4. Last PHP 5.4 RC is comming and stable version should be relased soon, so we would like to introduce you some of our PHP 5.4 editor features.

Note: All PHP 5.4 features are available in your projects after setting Project Properties -> Sources -> PHP Version to PHP 5.4 value, or after choosing the same value during a PHP Project creation (in New Project Wizard).

Today we would like to talk about array dereferencing. If you don't know, what does it mean, you can just read an official RFC.

And here it is. This is how it looks like in NetBeans PHP Editor. No syntax errors and working code completion.

 Array Dereferencing

That's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (component php, subcomponent Editor). Thanks.

Categories: Open Source

Symfony2 and Twig part of NetBeans

NetBeans for PHP weblog - Tue, 01/17/2012 - 10:03

Hi all, let me inform you that our support for Symfony2 framework and Twig templates (donated by Sebastian Hörl) are now part of standard NetBeans PHP distributions. More details about these features can be found in our previous blog post.

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component php, subcomponent Symfony or Twig).

Categories: Open Source

ApiGen support added

NetBeans for PHP weblog - Thu, 01/12/2012 - 07:55

Hi all, today we would like to show you how you can generate very nice API documentation of your projects with ApiGen.

Citation from http://apigen.org/:
ApiGen is the tool for creating professional API documentation from PHP source code, similar to discontinued phpDocumentor/phpDoc.

It works the same way as the current PhpDoc support. So, please install it and just verify in Tools > Options > PHP > ApiGen that NetBeans is able to detect it correctly (this should work for PEAR installation); if not, simply select the ApiGen script manually using the Browse button:

ApiGen IDE Options

Next, verify that ApiGen properties of your project are also correct:

ApiGen Project Properties

As you can see, a configuration file can be provided. This configuration file is in the Neon format, which NetBeans supports as well.

If everything is as you wish, just generate the API documentation:

Generate documentation via ApiGen

NetBeans will inform you about the progress in the Output Window:

ApiGen in work

If the process is successful, your WWW browser is opened with the generated documentation:

Generated Documentation

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component php, subcomponent ApiGen).

Categories: Open Source

Initial Support for Neon File Type

NetBeans for PHP weblog - Tue, 01/10/2012 - 08:40

Hi all in the year of PHP 5.4! Today, we would like to introduce you our support for a new file type. It's called NEON and it's a kind of configuration file developed by the Nette Foundation (authors of the Nette Framework). All of you surely know INI, or YAML files, so NEON is something similar.

You can find more information about this file type (its syntax, differences between NEON and YAML, etc.) on its official web site.

So from now, we can recognize these files and we know how to color them (as you can see below). Isn't that nice?

Neon Syntax Coloring

And why we decided to support this file type? Because it's used by some other tools which we'll support too ;) (stay tuned!)

That's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (component php, subcomponent Neon files). Thanks.

Categories: Open Source

Agavi 1.0.7 RC1 released!

Agavi - PHP5 application framework - Sun, 11/20/2011 - 19:45

Agavi 1.0.7-RC1 is now available for download at www.agavi.org and via the PEAR channel.

As always, the CHANGELOG has the full story, but here is a summary of the most important changes:

  • The getCredentials() method on an Action is no longer called unconditionally (i.e. whether or not the isSecure() method returned false) but only if the Action is “secureâ€.

  • The PHPTAL renderer now supports configuration of character encoding via parameter “encodingâ€.

  • It is now possible to manually call shutdown() on any database adapter to close the underlying connection; another call to getConnection() will cause a reconnect.

  • AgaviTesting::dispatch() can now call exit()? with the appropriate shell status code (the same as returned by a vanilla PHPUnit run) to indicate success or failures/errors to the calling process. This behavior is triggered when the new optional second argument, defaulting tofalse, is set totrue. If set tofalse`, it returns the PHPUnit result object that may be used by custom code to perform further analysis of the test run.

  • Several other minor changes and fixes are included in this release as well; most notably, AgaviBooleanValidator’s casting and exporting logic has been repaired, and AgaviConsoleRequest now properly creates an AgaviUploadedFile object with STDIN contents (when configured to read those) instead of a plain array.

  • The timezone database was updated to version 2011n.

Categories: Open Source

PHP_Depend - 0.3.3 Release

PHPsrc: News - Mon, 06/27/2011 - 17:01

This release contains following fixes:

  • Bug #60: PHP Depend Validator is missing
Categories: Open Source

PHPUnit - 0.7.2 Release

PHPsrc: News - Mon, 06/27/2011 - 17:00

This release contains following fixes:

  • Bug #106: PHPUnit View reports no error when using @dataProvider
Categories: Open Source

CustomFinds Behavior

The Bakery, Everything CakePHP - Sat, 09/25/2010 - 14:15
Behavior that enables you to config custom finds at Model in order to use with Model->find();
Categories: Open Source

User permissions based on a routing prefix

The Bakery, Everything CakePHP - Thu, 09/23/2010 - 14:34
You want to limit users to specific parts of the site, but the using ACLs seems like overkill. It's pretty simple to limit a few groups to certain parts of the site based on cake's prefix routing.
Categories: Open Source

Password generator

The Bakery, Everything CakePHP - Wed, 09/22/2010 - 18:07
Is a simple component to generate passwords automatically.
Categories: Open Source

Session based pagination

The Bakery, Everything CakePHP - Tue, 09/21/2010 - 16:36
When i was working on my project, i had to implement search functionality for my project's list. So i wanted to make use of pagination, but when i search for something, i got the result appropriate, but the pagination sort didn't work. I had this error of "undefined variable paginator". The reason for this, data is which is received by controller ($this->data) is lost afterwards. So here's the solution for it.
Categories: Open Source

AJAX Helper with jQuery

The Bakery, Everything CakePHP - Tue, 09/21/2010 - 16:18
AJAX Helper with jQuery. Some documentation and many examples on projects site. The AjaxHelper utilizes the ever-popular jQuery and jQuery UI libraries for Ajax operations and client side effects. See AJAX Helper with jQuery.
Categories: Open Source

Robust crypt functionality for use in CakePHP

The Bakery, Everything CakePHP - Mon, 09/20/2010 - 07:49
Robust and flexible data encryption functionality inside your web application is an essential part of your toolkit when developing your next fantastic webapp. The right setup can help you through situations that are troublesome and/or painful to deal with otherwise.
Categories: Open Source

CakePHP 1.3.4 released

The Bakery, Everything CakePHP - Sun, 09/12/2010 - 05:15
The CakePHP core team is proud to announce the immediate availability of CakePHP release 1.3.4. This release follows a month of effort from the team, and numerous reports from the community. Since the release of CakePHP 1.3.3 there have been 77 commits[1] and 54 tickets resolved.
Categories: Open Source

Wizard Component 1.2 Tutorial

The Bakery, Everything CakePHP - Fri, 09/10/2010 - 09:45
Automates several aspects of multi-page forms including data persistence, form preparation and unique data processing, wizard resetting (manual and automatic), user navigation, and plot-branching navigation while maintaining flexibility with custom validation and completion callbacks. This is a tutorial for my Wizard Component 1.2 found here: http://bakery.cakephp.org/articles/view/wizard-component-1-2-1.
Categories: Open Source