Skip to content

Instantly share code, notes, and snippets.

@mmoreram
Last active December 24, 2015 08:39
Show Gist options
  • Save mmoreram/6771869 to your computer and use it in GitHub Desktop.
Save mmoreram/6771869 to your computer and use it in GitHub Desktop.
Install any PayFony payment platform into your Symfony2 projects.

Installing PayFony

You have to add require line into you composer.json file

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    ...
    "username/platform-bundle": "version"
},

username/platform-bundle should be the name of the repository, for example mmoreram/paymill-bundle.
version should be desired stable or non-stable version you want to lock your bundle.

Then you have to use composer to update your project dependencies

php composer.phar update

And register the bundle in your appkernel.php file

return array(
    // ...
    new Mmoreram\PaymentCoreBundle\PaymentCoreBundle(),
    new Username\PlatformBundle\PlatformBundle(),
    // ...
);

Username\PlatformBundle\PlatformBundle() should be the namespace of Bundle class, for example Mmoreram\PaymillBundle\PaymillBundle()

Versions

Use version v1.0.1 for first PaymentCoreBundle non-stable version

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