symfony_puzzle

Partager un Bundle Symfony

Spread the love

Pour partager votre bundle, procédez en deux étapes.

La première étape consiste à pousser votre code dans un dépôt public. Avec Github, c’est gratuit et très simple.

La deuxième étape consiste à enregistrer votre bundle sur Packagist. C’est un référentiel de packages PHP.

Après cela, vous pouvez lancer la commande :

composer req kiora/foo-bundle

Github

Créez un dépôt github sur https://github.com/new :


Github vous donne les instructions pour pousser votre code :

git remote add origin git@github.com:kiora-tech/foo-bundle.git
git push -u origin master

Quelques explications :

git remote add : ajoutez un nouveau remote appelé origin

git push -u : poussez la branche principale sur l’origine distante

git tag 1.0.0
git push --tags

git tag : sert à marquer un commit

--tags : est l’option pour pousser les tags

Packagist

Connectez packagist à votre compte Github ou liez votre compte Github https://packagist.org/profile/edit

Pour enregistrer votre bunble allez sur : https://packagist.org/packages/submit

Mettez l’URL de votre dépôt https://github.com/kiora-tech/foo-bundle et vérifiez puis soumettez.

Super, vous avez partagé votre premier bundle.

chevron_left
chevron_right

Laisser un commentaire

%d blogueurs aiment cette page :