debricked / sylius-billogram-plugin
Billogram payment plugin for Sylius applications.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 8
Type:sylius-plugin
Requires
- php: ^7.2
- friendsofapi/billogram: dev-master#80ce3438c4f4b980aa255793725aeec3dfd059c1
- sylius/sylius: ^1.2
Requires (Dev)
- behat/behat: ^3.3
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.0
- friends-of-behat/cross-container-extension: ^1.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.0
- friends-of-behat/variadic-extension: ^1.0
- lakion/mink-debug-extension: ^1.2.3
- nelmio/alice: ^3.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-shim: ^0.9.2
- phpunit/phpunit: ^6.5
- se/selenium-server-standalone: ^2.52
- sylius-labs/coding-standard: ^2.0
- symplify/easy-coding-standard: ^4.6
This package is auto-updated.
Last update: 2024-11-21 02:20:41 UTC
README
Overview
This plugin allows you to integrate Billogram invoice with Sylius platform app. It includes all Sylius and Billogram invoice features.
The plugin was developed with inspiration from BitBagCommerce's SyliusMolliePlugin.
Installation
$ composer require debricked/sylius-billogram-plugin
Add plugin dependencies to your AppKernel.php file:
public function registerBundles() { return array_merge(parent::registerBundles(), [ ... new \Debricked\SyliusBillogramPlugin\DebrickedSyliusBillogramPlugin(), ]); }
Import required config in your app/config/config.yml
file:
# app/config/config.yml imports: ... - { resource: "@DebrickedSyliusBillogramPlugin/Resources/config/config.yml" }
Import routing by adding the following to the top of your app/config/routing.yml
file:
# app/config/routing.yml debricked_sylius_billogram_plugin: resource: "@DebrickedSyliusBillogramPlugin/Resources/config/routing.yml"
Update your database
$ bin/console doctrine:migrations:diff
$ bin/console doctrine:migrations:migrate
Note: If you are running it on production, add the -e prod
flag to this command.
Customization
Available services you can decorate and forms you can extend
Run the below command to see what Symfony services are shared with this plugin:
$ bin/console debug:container debricked_sylius_billogram_plugin
Testing
$ composer install $ cd tests/Application $ yarn install $ yarn run gulp $ bin/console assets:install web -e test $ bin/console doctrine:database:create -e test $ bin/console doctrine:schema:create -e test $ bin/console server:run 127.0.0.1:8080 -d web -e test $ open http://localhost:8080 $ billogram_api_username="your_sandbox_username" billogram_api_password="your_sandbox_api_key" bin/behat $ billogram_api_username="your_sandbox_username" billogram_api_password="your_sandbox_api_key" bin/phpspec run
Contribution
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.