Skip to content

Instantly share code, notes, and snippets.

@mikamboo
Last active December 17, 2015 01:30
Show Gist options
  • Save mikamboo/5529157 to your computer and use it in GitHub Desktop.
Save mikamboo/5529157 to your computer and use it in GitHub Desktop.
Installation application ZF-2 PHP

Installation application serveur

I - Init projet ZF2

  • Récupérer le projet sur le repo Git et fair un checkout

  • Le dossier du projet contient l'utilitaire composer.phar et composer.json

  • Ouvrir la console naviguer dans le dossier du projet, exec cmd : php composer.phar update

  • Le dossier projet contient aussi le shell Update-DB.bat

II - Installation de PEAR (W7)

  • Ouvrir la console et naviger dans le dossier de php (ex. C:\APPS\wamp\bin\php\php5.4.3)

  • Y créer un dossier PEAR

  • Dans ce dossier PEAR, coller le fichier go-pear.phar (http://pear.php.net/go-pear.phar)

  • Dans le dossier PEAR, executer la cmd : php -d phar.require_hash=0 ./PEAR/go-pear.phar

  • Choisir installation "system" dans la console

  • Par la suite taper entrer pour continuer jsuqu'à la fin de l'install

  • Explorez le dossier de php et exécutez le fichier PEAR_ENV.reg acceptez l'ajout au registre

III - Installation de phing

  • Executer les commandes :

    pear channel-discover pear.phing.info pear install [--alldeps] phing/phing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment