https://github.com/debricked/sylius-billogram-plugin
Adds a Sylius gateway for Billogram.
https://github.com/debricked/sylius-billogram-plugin
Last synced: 11 months ago
JSON representation
Adds a Sylius gateway for Billogram.
- Host: GitHub
- URL: https://github.com/debricked/sylius-billogram-plugin
- Owner: debricked
- License: mit
- Created: 2018-08-21T14:20:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T06:54:23.000Z (about 3 years ago)
- Last Synced: 2025-03-05T06:32:23.071Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/BitBagCommerce/SyliusMolliePlugin).
## Installation
```bash
$ composer require debricked/sylius-billogram-plugin
```
Add plugin dependencies to your AppKernel.php file:
```php
public function registerBundles()
{
return array_merge(parent::registerBundles(), [
...
new \Debricked\SyliusBillogramPlugin\DebrickedSyliusBillogramPlugin(),
]);
}
```
Import required config in your `app/config/config.yml` file:
```yaml
# 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:
```yaml
# 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](https://symfony.com/doc/current/service_container/service_decoration.html) and forms you can [extend](http://symfony.com/doc/current/form/create_form_type_extension.html)
Run the below command to see what Symfony services are shared with this plugin:
```bash
$ bin/console debug:container debricked_sylius_billogram_plugin
```
## Testing
```bash
$ 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/.