News Feed
Sections




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

Cal Evans' Blog:
Lessons in Phar
July 20, 2009 @ 13:18:37

Cal Evans has been working with a new feature included in the recent PHP 5.3 release for a project he's been working on - phar.

In preparation of an episode of boxlunchtraining.com I have been doing a lot of research into creating and using PHP's new phar archives. While I've not answered all my questions yet, I've been able to do most of what I wanted. One of the tasks I wanted to complete was to create a phar archive for Zend Framework. Here is a very quick intro into how I did it. Most of this is just a reminder for me but if you find it useful then I'm glad.

He steps through the process for creating the archive - making the package.php file, setting up the file to add an entire directory's worth of files to the archive (RecursiveDirectoryIterator) and the stub.php to get his autoload working correctly.

1 comment voice your opinion now!
tutorial package phar


blog comments powered by Disqus

Similar Posts

Volker Dusch's Blog: Autoloading for legacy, non-framework projects

IBM developerWorks: Understanding the Zend Framework, Part 2 (MVC & a Database)

KillerPHP.com: Advanced PHP Video Tutorial - Passing Parameters Around an MVC Application

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution

MaltBlue.com: Zend Form Mastery with Zend Config - Part 4 Configuring Zend Validators


Community Events





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


interview symfony community laravel install conference composer list introduction unittest language version podcast release configure api extension voicesoftheelephpant opinion series

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