News Feed
Sections




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

Tom Van Herreweghe's Blog:
Running Zend Framework modules from a Phar file
February 09, 2011 @ 10:42:18

In a recent post to his blog Tom Van Herreweghe shares his method for running Zend Framework modules from a phar file, a simple archiving method native to PHP that makes it simpler to group and package related files.

Using Zend Framework as an MVC application is probably the most common usage examples for Zend Framework. When you create such an MVC application, you will probably have heard about modules: reusable components of your application. [...] In my case, I usually just copy and paste the module from one base project into a new project. That's easy. But it would be cooler to package your module as a Phar file, and run that file instead.

He includes the code that can be dropped into your Zend Framework installation - MyLib_Application_Resource_Modules - that handles the bootstrapping of the phar files and executes the Boostrap.php file that it finds inside. He also points to this other article from Cal Evans about working with phar files in the Zend Framework.

0 comments voice your opinion now!
phar tutorial zendframework module bootstrap


blog comments powered by Disqus

Similar Posts

Marcelo Gornstein's Blog: Advanced telephony applications with PHP and PAGI using call flow nodes

PHPRiot.com: Zend Framework 101: Zend_Soap

Rob Allen's Blog: ID!=id (Zend Framework Tutorial Updates)

Liip Blog: Why a Project Switched from Google Search Appliance to Zend_Lucene

Nefarious Designs: Object-Oriented PHP Part 1: Definition


Community Events





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


release opinion framework symfony community interview install list language bugfix introduction tips series package voicesoftheelephpant api library podcast deployment laravel

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