News Feed
Jobs Feed
Sections




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

Script-Tutorials.com:
Phar - PHP archiving practice
May 17, 2011 @ 08:28:50

On Script-Tutorials.com today there's a new tutorial showing you how to use one of the more under-used and powerful features of recent PHP releases - the phar packaging for creating self-contained archives.

I guess you noticed that due your project become larger - the more and more files it contain. Sometimes it comes to the thousands of files. And then - Phar can help you. This utility allows us to pack a variety of files in the single library file. Thus, we can significantly reduce the number of include files in the project, and work with the entire library as with single file. It is also possible to have a packed (gzip/bzip2) version of the library.

They show you how to create simple phar archive (sample code here) that contains a few classes linked by an index.php file.

0 comments voice your opinion now!
phar archive tutorial classes


blog comments powered by Disqus

Similar Posts

Lorenzo Alberton's Blog: Navigation Through Paragraphs in an Article

DZone.com: Development Setup for Neo4j and PHP: Part 2

Phish Tank: Install & Configure Apache+PHP+ZendFramework+OracleDbXe On Windows In Minutes

Lars Strojny's Blog: Dependency Injection Container Refactorings, Part One

MrPHP.com.au: Image Cache using phpThumb and .htaccess


Community Events











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


install hack package overview introduction performance facebook hhvm database unittest security composer release podcast symfony2 language component framework application opinion

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