PHP

Zend Server 6 – Noted Improvement Is Here

February 16th, 2013 0 Comments

Start Your Project off Right with the Best Free PHP Server
Zend Server Free Edition gives your app the edge – get the fastest PHP server around, ready to go with all the drivers you need, along with advanced debugging tools.

Fastest PHP stack
Certified, tested PHP runtime pre-configured with popular extensions and libraries
Advanced troubleshooting tools
See key metrics on your app’s performance and set custom monitoring thresholds
Automatically package apps up to move from testing to production

Full PHP Stack
A full stack that has been pre-integrated and tested by Zend. Everything you need is included as standard, whether you’re using Windows, Linux or Mac OS. The simple, native installers will set you up in minutes with:

• A certified PHP distribution
• Bytecode accelerator (Optimizer+)
• Zend Data Cache
• Zend Framework
• Apache (or IIS integration)MySQL (on Windows and Mac OS X)
• Out-of-the-box connectivity to all common databases
• Web-based PHP administrator console

Best Performance
Zend Server includes multiple capabilities for improving response times including:
• PHP bytecode caching (Zend Optimizer+) – increases performance with no application changes
• Data caching – a set of functions that allow developers to cache data in shared memory or to disk

Advanced Troubleshooting
Zend Server has a full toolset to help you find the cause of app issues fast.
• Code tracing provides a line by line snapshot of PHP code execution for any given URL
• Web Services debugging means you can identify and trace the path of web service calls. Easily integrates with Zend Studio IDE.

Free Versus Paid?
While free Zend Server is a great solution for a development project, it has limitations compared to paid Zend Server subscription. Paid subscriptions include longer data retention (months or years rather than an hour of metrics), technical support and security patches , more performance features, and multi-server support and management.

Downloads
They have been simplified, or complicated, depending on how you look at it. There is only one option, and that’s the Enterprise Trial version, however, from within the admin you can change your license to another version, including the free version.

If you’ve used Zend Server CE, you’ll much enjoy this upgrade to ZS6!

Drupal Hearts Symfony… awwww

November 26th, 2012 0 Comments

It was officially announced that Drupal will adopt some of the Symfony Components for their upcoming version 8. And I’m not talking about some minor components, they are embracing our vision and they will use the major components that will allow them to build a great low-level architecture for Drupal 8: HttpFoundation, HttpKernel, Routing, EventDispatcher, DependencyInjection, and ClassLoader.

By adopting HttpKernel, Drupal and Symfony projects will become more interoperable. It means that you will be able to easily integrate your custom Symfony applications with Drupal… and vice-versa. This is a very good news for both communities: they benefit from Symfony developers code and experience, and they will help Symfony improve what they already have.

The future for Drupal is a RESTful one, and for this developer, that generally loathes the typical PHP content management system that can be bloated, this is good news. Certainly Drupal has a large following, but with this connection happening Symfony has really stepped up their position, and Drupal their game.

Zend Framework will always be the mainstream enterprise framework, but companies have learned well that coupling with frameworks is powerful on several levels (industry position, development, etc.). Zend Framework has ties with Magento, CodeIgniter has direct ties to Expression Engine, and Symfony now joins ranks with one of the most popular PHP content management systems around, Drupal.

How to install PHPUnit on Mac OSX

October 18th, 2012 0 Comments

The de facto standard unit testing framework for PHP is PHPUnit. You can find it here (GitHub repository). Even if the documentation explains how to install it on your system, it may not be as self-explanatory as it looks. Here is a little how-to for Mac OSX.

Get PEAR.
Open a Terminal window and type :

curl http://pear.php.net/go-pear.phar > go-pear.phar
This will copy the file we need to install PEAR on your local hard drive, in your User directory.

Install PEAR.
Still in Terminal, type :

sudo php go-pear.phar
Change the installation path (option 1) to

/usr/local
and launch installation.
After installation has completed, you can safely delete the go-pear.phar file.

Tell PHP CLI where PEAR is.
By default, PHP CLI (Command Line Interface) php.ini does not exist, but a template is available on the system. We have to copy and edit it. Type :

sudo cp /etc/php.ini.default /etc/php.ini
sudo nano /etc/php.ini
Uncomment the include_path line and make it look like this :

include_path = “.:/usr/local/share/pear”
Tell Terminal where PEAR is.
To let Terminal know where is your PEAR path and be able to launch PHPUnit right from the console, type (in the console) :

sudo nano /etc/profile
and add

export PATH=$PATH:/usr/local/bin
to the end of the file.
Save and exit. Close your Terminal window.

Install PHPUnit.
Open a new Terminal window and type :
sudo pear config-set auto_discover 1
sudo pear install pear.phpunit.de/PHPUnit
This will install all needed files for PHPUnit to run.

Enjoy.
Everything should be fine. In your Terminal, type :
phpunit
You should get a list of all available PHPUnit functions. Happy testing !