News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso:
Combining Zend Framework2 and Symfony2 components with Composer to build PHP projects
September 10, 2012 @ 10:22:54

In his most recent post Gonzalo Ayuso shows you how to merge Zend Framework 2 and Symfony2 components into the same project using Composer.

Zend Framework 2 is finally stable. I must admit that I'm not a big fan of ZF (or even Symfony2) as a full stack framework. I normally prefer to use micro frameworks, but those two frameworks (ZF2 and SF2) are great as component libraries. Today we are going to build a simple console application (using symfony/console component) to list the database tables (using zendframework/zend-db's Metadata).

He starts with the information you'll need to put into your "composer.json" file to get the needed packages (and set up the autoloader a bit). Included in the post is the code to create his "SchemeCommand" class to make the new CLI command, one that connects to a database and echos out the metadata about the given table. A unit test is also included.

0 comments voice your opinion now!
zendframework2 symfony2 project composer tutorial component


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Building a Multilingual PHP Website

Knp Labs: Deploy Your Symfony Application Painlessly with Capifony

Ralph Schindler's Blog: PHP Component and Library API Design Overview

Bence Eros' Blog: Creating an interactive debugger for PHP

Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver


Community Events

Don't see your event here?
Let us know!


laravel application library series conference framework extension introduction version release voicesoftheelephpant example community performance podcast php7 api symfony2 interview opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework