News Feed
Sections




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

PHPMaster.com:
Packaging Your Apps with Phar
February 16, 2012 @ 09:53:11

On PHPMaster.com today there's a new tutorial showing you how to package up your applications using the phar functionality that's bundled in to recent PHP versions.

PHAR ("Php ARchive") is analogous to the JAR file concept but for PHP. If you have PHP 5.3 or greater, the Phar extension is built-in and enabled; you can start using it without any additional requirements. This article is intended to shed some light on this important feature for those who haven't used it before. Hopefully you'll find it a very helpful tool and have a better and faster deployment experience.

They show you how to create a sample project to build the phar from - a simple application that prints out a message and the contents of a configuration file. Code is included to help you build the phar file and how to define the stub file to pull in your application's files and folder.

0 comments voice your opinion now!
package application phar tutorial


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Watermarks in our images with PHP and Gearman

Lukas Smith's Blog: MDB2 2.1.0 released

Mohammed Berdai's Blog: How To Install PostgreSQL And phpPgAdmin Support In XAMPP

Lehi Sanchez's Blog: The Ultimate Open Source Web Server Installation Part 1

WeberDev.com: User Authentication With patUser (Part 1)


Community Events





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


symfony language laravel interview library threedevsandamaybe podcast bugfix zendserver list community api release introduction tips series deployment framework opinion conference

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