Additional functionality for Packagist
Atlassian Stash Integration
Global Maintainer Console Command
Register the new bundle in your AppKernel file
new Nelmio\SolariumBundle\NelmioSolariumBundle(), new Nelmio\SecurityBundle\NelmioSecurityBundle(), new GiftCards\PackagistBundle\GiftCardsPackagistBundle(), );
Configure the stash connection
gift_cards_packagist: protocol: ssh domain: stash.domain.com
Include the bundle routing file
gift_cards_packagist: resource: "@GiftCardsPackagistBundle/Resources/config/routing.yml"
Because Stash does not supply the information for the user who triggered the hook, you must create a generic Stash user. Once this user is created you will need to login and copy the API Token. The token and the username are used to authenticate Stash with Packagist. If you're configuring a hook for a repository specific to your user you can use your own credentials.
NOTE: For Stash to update Packagist the Stash user will need to be a maintainer on every package from Stash.
Setup a Post-Receive hook for each repository which is tracked in packagist.
Configure it with a similiar url:
http://<packagist domain>/api/stash?username=<stash user>&apiToken=<stash user token>