News Feed
Jobs Feed
Sections




News Archive
Zoe Slattery's Blog:
So phar so good
January 13, 2009 @ 11:11:54

In a recent post to her blog Zoe Slattery looks at a way to provide users with a single-file approach to installing an application. Her choice was phar.

I've just finished converting a small procedural application, designed to be run from the command line, to PHP5 . I wanted a way to give users a single file to execute and as phar is included in PHP5.3 I decided to try to use it.

She includes the tree structure for the application and steps through the process she used to make the archive - a call to buildFromDirectory, making a new phar object, adding the contents of files into it and building out a stub that maps the command-line call on the archive to a certain script.

0 comments voice your opinion now!
phar tutorial archive example script


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Patterns for Flexible View Handling, Part 1 - Working with Composites

AnyExample.com: Downloading files from Amazon S3

PHPRiot.com: Translating Text Using the Google Translate API and PHP, JSON and cURL

ProDevTips.com: Zend Amf and class mapping with Flash CS3 / AS3

Rob Allen's Blog: Russian and Polish Zend Framework Tutorial


Community Events









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


release database api code phpunit tool opinion zendframework2 example language object community composer development podcast introduction framework unittest interview testing

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