News Feed
Sections




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

ZendCasts.com:
Fun with Phar
October 04, 2011 @ 08:14:16

New today on ZendCasts.com there's a screencast tutorial about using phar archives in your applications.

Phar is a new thing that's developed on the horizon over the last few years that's essentially a PHP archive or library.

He shows how to set up a basic application (non-Zend Framework) that does a "hello world" sort of output showing a date "next week". Also included are the commands to bundle it up into a phar archive using the features already built into PHP. The build stub uses the buildFromDirectory and compression/buffering. He also points out a common problem with the default settings on many PHP installed - an INI setting that disables phar creation. Thankfully, it's easy to change via a ini_set call updating the "phar.readonly" setting.

0 comments voice your opinion now!
screencast zendcast archive phar tutorial introduction


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Releasing unmanaged resources (a PHP port from C#’s “using” statement)

Pádraic Brady's Blog:Doing that thing called PEAR - Packaging Source Code for PEAR Distribution

PHPMaster.com: Under the Hood of Yii’s Component Architecture, Part 2

DevShed: Introducing the Flyweight Pattern with PHP 5

Jim Plush's Blog: PHP Meet Mr. FireBug - PHP Debugging for Web 2.0


Community Events

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


api introduction release performance community configure podcast conference series example opinion symfony2 application language php7 library laravel install framework interview

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