A phark package is defined with a Pharkspec file in the root of a project. This defines metadata about the package including:
Using this information, the
phark bundle command is used to generate a .phark file (which is actually a php phar file). This package is signed and can be uploaded to a central repository.
<?php $spec ->name('pheasant') ->authors('Lachlan Donald <firstname.lastname@example.org>') ->homepage('http://github.com/lox/pheasant') ->version('1.0.0') ->phpVersion('>=5.3.1') ->summary('A object mapper written for MySQL5.1 and PHP5.3') ->description('Pheasant is a simple object mapper for PHP 5.3+ and MySQL 5+. It offers basic relationships and query hydration.') ->dependency('simpletest','>=2.0.1beta') ->includePath('lib/**') ;
Last edited by igorw,