A little late sorry, but ZF 1.5.1's package is now ready.
A propos
- something to tell me ? feel free to drop a mail
- Profile LinkedIn
Monday 31 March 2008, 17:08
By Geoffrey - Coding - Permalink
A little late sorry, but ZF 1.5.1's package is now ready.
Saturday 22 March 2008, 18:19
By Geoffrey - Coding - Permalink
The long awaited 1.5 version of the Zend Framework has landed for some days already, and here comes its pear package. Please note the api version changed to 1.5 in this package.
Wednesday 27 February 2008, 11:17
By Geoffrey - Coding - Permalink
The package for the last 1.0.x release, 1.0.4, is now available on the phpmafia pear channel. Please report any issue in the comment of this post. The Zend_Locale's xml bug should now be fixed (they are now considered as php and thus put at the right place, which is not the best way to fix the bug I guess but at least it should work for now).
Wednesday 2 January 2008, 23:50
By Geoffrey - Geekeries - Permalink
Just to say I packaged the 1.0.3 version of the zend framework on the phpmafia pear channel. It's a bit late I know, but at least it's here. Please note that I already have been notified of a problem regarding the Zend Locale's xml datafiles and that I hope to have worked out a solution for the next release (1.5 if all goes well).
Sunday 30 September 2007, 16:21
By Geoffrey - Coding - Permalink
A PEAR package for the 1.0.2 version of the Zend Framework is now available from the PEAR PHPMafia channel. As usual, to install just issue the following:
pear channel-discover pear.phpmafia.net
pear install phpmafia/ZendMonday 25 June 2007, 15:57
By Geoffrey - Coding - Permalink
Allez hop, la RC3 du Zend Framework est sortie (il y a 2 jours).
J'en profite pour faire un peu de pub pour zftalk, un chan IRC sympa.
Wednesday 13 June 2007, 16:17
By Geoffrey - Coding - Permalink
Au fait, j'ai mis en ligne le package pear de la 1.0 RC2 du Zend Framework hier, avec un peu de retard donc, puisque j'étais occupé à imiter les oiseaux :)
Tuesday 29 May 2007, 10:41
By Geoffrey - Coding - Permalink
Disponible sur le channel pear.
Voir aussi: le changelog
N.B.: je n'ai pas pu installer le package sur la machine qui héberge le channel via le channel, mais il semblerait que ce soit un cas isolé. Si vous rencontriez un problème (par exemple l'installeur PEAR qui vous dirait Nothing to upgrade) n'hésitez pas à me le signaler !
Monday 7 May 2007, 09:08
By Geoffrey - Coding - Permalink
Dernière ligne droite avant les premières 1.0 RC, la beta 0.9.3 du Zend Framework est sortie, et son package est disponible sur le channel PEAR PHPMafia.
Saturday 24 March 2007, 21:58
By Geoffrey - Coding - Permalink
Le ZF est sorti en version 0.9.1 et est dispo sur le channel pear.
Voir aussi:
Sunday 18 March 2007, 14:26
By Geoffrey - Coding - Permalink
La version 0.9 du ZF est disponible sur le channel PEAR phpmafia:
pear upgrade phpmafia/Zend-0.9.0
ATTENTION, cette version change pas mal de choses au niveau de la classe Zend: vos applis risquent de ne plus fonctionner suite à la mise à jour.
Voir aussi: L'annonce sur la mailing list Zend Announce
Friday 2 March 2007, 12:11
By Geoffrey - Geekeries - Permalink
Pour installer le serveur PEAR, c'est simple:
pear channel-discover pear.chiaraquartet.net pear install chiara/Chiara_PEAR_Server pear run-scripts Chiara_PEAR_Server
Ensuite on répond aux question, et c'est automagique.
Après, pour créer des packages, ça se corse. Tout d'abord, on a besoin de PEAR_PackageFileManager:
pear install PEAR_PackageFileManager
Ensuite, le but est de générer les package.xml qui vont bien. Voilà comment j'ai procédé pour le package Zend:
mkdir -p ~/pear/zend/src && cd ~/pear/zend wget http://framework.zend.com/download/tgz -O - | tar xzC ~ mv ~/ZendFramework-0.8.0/library/Zend* src/ php ./mkpkg.php make cd src && pear package
Ceux qui ont bien suivi auront noté que mkpkg.php est sorti un peu de l'espace :-) Vous trouverez son contenu à la fin du billet.
Pour résumer, on créé un répertoire de travail (~/pear/zend/), dans lequel on créé un répertoire src, qui contiendra tous les fichiers du package, puis le script mkpkg.php se charge 1) d'analyser le contenu de src, et 2) de créer le package.xml qui va bien, selon les instructions qui lui sont fournies.
Nous disposons désormais d'un package Zend-0.8.0.tgz dans ~/pear/zend/src, que nous n'avons plus qu'a uploader via l'interface d'administration du serveur PEAR précédemment installé :-)
Le fichier mkpkg.php:
<?php
require_once('PEAR/PackageFileManager2.php');
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2;
$e = $packagexml->setOptions(array(
'baseinstalldir' => '/',
'packagedirectory' => dirname(__FILE__).'/src',
));
$packagexml->setPackage('Zend');
$packagexml->setSummary('Zend Framework');
$packagexml->setDescription('The Zend\'s PHP Framework');
$packagexml->setChannel('pear.phpmafia.net');
$packagexml->setAPIVersion('0.8.0');
$packagexml->setReleaseVersion('0.8.0');
$packagexml->setReleaseStability('devel');
$packagexml->setAPIStability('devel');
$packagexml->setNotes("Still a preview release");
$packagexml->setPackageType('php'); // this is a PEAR-style php script package
$packagexml->addRelease(); // set up a release section
$packagexml->setPhpDep('5.1.2');
$packagexml->setPearinstallerDep('1.4.0a12');
$packagexml->addMaintainer('lead', 'ash', 'Geoffrey Bachelet', 'geoffrey+pear@zubrowka.org');
$packagexml->setLicense('New BSD License', 'http://framework.zend.com/license/new-bsd');
$packagexml->generateContents(); // create the <contents> tag
$pkg = &$packagexml->exportCompatiblePackageFile1(); // get a PEAR_PackageFile object
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
$pkg->writePackageFile();
$packagexml->writePackageFile();
} else {
$pkg->debugPackageFile();
$packagexml->debugPackageFile();
}
?>
Tuesday 27 February 2007, 00:02
By Geoffrey - Geekeries - Permalink
Au lieu de partir faire du vélo ce soir, j'ai livré bataille avec PEAR. Livré bataille c'est le mot, vu le manque flagrant de documentation sur la création de serveur et packages PEAR, mais j'ai finalement réussi, grâce au tutorial de Tobias Schlitt (un peu modifié) à Arnaud Limbourg. Bref, j'ai le plaisir de vous annoncer la disponibilité immédiate du Channel PEAR PHPMafia, qui héberge pour l'instant un unique package: Zend-0.8.0. Pour l'installer, vous devez d'abord présenter le channel à votre installeur pear:
pear channel-discover pear.phpmafia.net
Puis vous devriez être en mesure d'installer le Zend Framework via un pear install classique:
pear install phpmafia/Zend-0.8.0
On spécifie la version vu que le package est en stabilité devel, pour coller au status preview du Zend Framework.
Vu comment j'ai galéré pour en arriver là, j'ai certains doutes sur le caractère 100% komifo de l'installation, donc j'apprécierais tout retour de bug et anomalies diverses que vous pourriez rencontrer à l'utilisation de ce channel, à pear@phpmafia.net par exemple, ou dans les commentaires de ce billet :-)