-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update do support sylius 1.10
- Loading branch information
Showing
95 changed files
with
971 additions
and
244 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* @BitBagCommerce | ||
* @Sylius/core-team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
name: Build | ||
|
||
on: | ||
push: ~ | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
name: "PHP ${{ matrix.php }}, MySQL ${{ matrix.mysql }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.4, 8.0] | ||
node: [10.x] | ||
mysql: [5.7, 8.0] | ||
|
||
exclude: | ||
- # Segmentation fault while clearing cache | ||
php: 8.0 | ||
mysql: 5.7 | ||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
|
||
- | ||
name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
ini-values: date.timezone=Europe/Warsaw, opcache.enable=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.max_accelerated_files=32531, opcache.interned_strings_buffer=8, opcache.validate_timestamps=0, opcache.save_comments=1, opcache.fast_shutdown=0 | ||
extensions: intl, gd, opcache, mysql, pdo_mysql, :xdebug | ||
tools: symfony | ||
coverage: none | ||
|
||
- | ||
name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
|
||
- | ||
name: Shutdown default MySQL | ||
run: sudo service mysql stop | ||
|
||
- | ||
name: Setup MySQL | ||
uses: mirromutth/[email protected] | ||
with: | ||
mysql version: "${{ matrix.mysql }}" | ||
mysql root password: "root" | ||
|
||
- | ||
name: Output PHP version for Symfony CLI | ||
run: php -v | head -n 1 | awk '{ print $2 }' > .php-version | ||
|
||
- | ||
name: Install certificates | ||
run: symfony server:ca:install | ||
|
||
- | ||
name: Run Chrome Headless | ||
run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --disable-web-security --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 & | ||
|
||
- | ||
name: Run webserver | ||
run: (cd tests/Application && symfony server:start --port=8080 --dir=public --daemon) | ||
|
||
- | ||
name: Get Composer cache directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- | ||
name: Cache Composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php-${{ matrix.php }}-composer- | ||
- | ||
name: Install PHP dependencies | ||
run: composer install --no-interaction | ||
|
||
- | ||
name: Get Yarn cache directory | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- | ||
name: Cache Yarn | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-node-${{ matrix.node }}-yarn- | ||
- | ||
name: Install JS dependencies | ||
run: (cd tests/Application && yarn install) | ||
|
||
- | ||
name: Prepare test application database | ||
run: | | ||
(cd tests/Application && bin/console doctrine:database:create -vvv) | ||
(cd tests/Application && bin/console doctrine:schema:create -vvv) | ||
- | ||
name: Prepare test application assets | ||
run: | | ||
(cd tests/Application && bin/console assets:install public -vvv) | ||
(cd tests/Application && yarn build) | ||
- | ||
name: Prepare test application cache | ||
run: (cd tests/Application && bin/console cache:warmup -vvv) | ||
|
||
- | ||
name: Load fixtures in test application | ||
run: (cd tests/Application && bin/console sylius:fixtures:load -n) | ||
|
||
- | ||
name: Validate composer.json | ||
run: composer validate --ansi --strict | ||
|
||
- | ||
name: Validate database schema | ||
run: (cd tests/Application && bin/console doctrine:schema:validate) | ||
|
||
- | ||
name: Run Behat | ||
run: vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,52 @@ | ||
<h1 align="center"> | ||
<a href="http://bitbag.shop" target="_blank"> | ||
<img src="doc/logo.jpeg" width="55%" /> | ||
</a> | ||
<br /> | ||
<a href="https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin" title="License" target="_blank"> | ||
<img src="https://img.shields.io/packagist/l/bitbag/dhl24-pl-shipping-export-plugin.svg" /> | ||
</a> | ||
<a href="https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin" title="Version" target="_blank"> | ||
<img src="https://img.shields.io/packagist/v/bitbag/dhl24-pl-shipping-export-plugin.svg" /> | ||
</a> | ||
<a href="http://travis-ci.org/BitBagCommerce/SyliusDHL24PlShippingExportPlugin" title="Build status" target="_blank"> | ||
<img src="https://img.shields.io/travis/BitBagCommerce/SyliusDHL24PlShippingExportPlugin/master.svg" /> | ||
</a> | ||
<a href="https://scrutinizer-ci.com/g/BitBagCommerce/SyliusDHL24PlShippingExportPlugin/" title="Scrutinizer" target="_blank"> | ||
<img src="https://img.shields.io/scrutinizer/quality/g/BitBagCommerce/SyliusDhl24PlShippingExportPlugin.svg" /> | ||
</a> | ||
<a href="https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin" title="Total Downloads" target="_blank"> | ||
<img src="https://poser.pugx.org/bitbag/dhl24-pl-shipping-export-plugin/downloads" /> | ||
</a> | ||
<p> | ||
<img src="https://sylius.com/assets/badge-approved-by-sylius.png" width="85"> | ||
</p> | ||
</h1> | ||
|
||
## Overview | ||
|
||
This plugin was made on top of our ShippingExport abstraction layer. It's goal is to allow exporting DHL24PL shipments to external | ||
web API in Sylius platform based apps. Each time new shipment for a configured | ||
DHL gateway is placed you will see a new shipment in the shipping export tab. | ||
|
||
## Support | ||
|
||
We work on amazing eCommerce projects on top of Sylius and other great Symfony based solutions, like eZ Platform, Akeneo or Pimcore. | ||
Need some help or additional resources for a project? Write us an email on [email protected] or visit | ||
[our website](https://bitbag.shop/)! :rocket: | ||
|
||
## Demo | ||
|
||
We created a demo app with some useful use-cases of the plugin! Visit [demo.bitbag.shop](https://demo.bitbag.shop) to take a look at it. | ||
# [![](https://bitbag.io/wp-content/uploads/2021/10/SyliusDHL24PLShippingExportPlugin.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_dhl24) | ||
|
||
# BitBag SyliusDHL24PlShippingExportPlugin | ||
|
||
---- | ||
|
||
[![](https://img.shields.io/packagist/l/bitbag/dhl24-pl-shipping-export-plugin.svg) ](https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin "License") [ ![](https://img.shields.io/packagist/v/bitbag/dhl24-pl-shipping-export-plugin.svg) ](https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin "Version") [ ![](https://img.shields.io/travis/BitBagCommerce/SyliusDHL24PlShippingExportPlugin/master.svg) ](http://travis-ci.org/BitBagCommerce/SyliusDHL24PlShippingExportPlugin "Build status") [ ![](https://img.shields.io/scrutinizer/quality/g/BitBagCommerce/SyliusDhl24PlShippingExportPlugin.svg) ](https://scrutinizer-ci.com/g/BitBagCommerce/SyliusDHL24PlShippingExportPlugin/ "Scrutinizer") [![](https://poser.pugx.org/bitbag/dhl24-pl-shipping-export-plugin/downloads)](https://packagist.org/packages/bitbag/dhl24-pl-shipping-export-plugin "Total Downloads") [![Slack](https://img.shields.io/badge/community%20chat-slack-FF1493.svg)](http://sylius-devs.slack.com) [![Support](https://img.shields.io/badge/support-contact%20author-blue])](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_dhl24) | ||
|
||
<p> | ||
<img align="left" src="https://sylius.com/assets/badge-approved-by-sylius.png" width="85"> | ||
</p> | ||
|
||
At BitBag we do believe in open source. However, we are able to do it just because of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us to work together, feel free to reach out. You will find out more about our professional services, technologies, and contact details at [https://bitbag.io/](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms). | ||
|
||
Like what we do? Want to join us? Check out our job listings on our [career page](https://bitbag.io/career/?utm_source=github&utm_medium=referral&utm_campaign=career). Not familiar with Symfony & Sylius yet, but still want to start with us? Join our [academy](https://bitbag.io/pl/akademia?utm_source=github&utm_medium=url&utm_campaign=akademia)! | ||
|
||
## Table of Content | ||
|
||
*** | ||
|
||
* [Overview](#overview) | ||
* [Support](#we-are-here-to-help) | ||
* [About us](#about-us) | ||
* [Community](#community) | ||
* [Demo](#demo-sylius-shop) | ||
* [License](#license) | ||
* [Contact](#contact) | ||
|
||
# Overview | ||
|
||
*** | ||
|
||
This plugin allows you to generate shipping labels for DHL24. | ||
|
||
- [Installation](#instalation) | ||
- [Customization](#customization) | ||
|
||
## We are here to help | ||
|
||
This **open-source plugin was developed to help the Sylius community**. If you have any additional questions, would like help with installing or configuring the plugin, or need any assistance with your Sylius project - let us know! | ||
|
||
[![](https://bitbag.io/wp-content/uploads/2020/10/button-contact.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) | ||
|
||
|
||
## Instalation | ||
|
||
*** | ||
|
||
Run composer to install DHL24ShippingExportPlugin: | ||
|
||
```bash | ||
$ composer require bitbag/dhl24-pl-shipping-export-plugin | ||
|
@@ -52,30 +61,113 @@ return [ | |
]; | ||
``` | ||
|
||
Add config file to your _sylius.yaml | ||
|
||
```yaml | ||
imports: | ||
... | ||
|
||
- { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" } | ||
``` | ||
## 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 bitbag_sylius_dhl24pl_plugin | ||
``` | ||
|
||
## Testing | ||
```bash | ||
$ composer install | ||
$ cd tests/Application | ||
$ yarn install | ||
$ yarn run gulp | ||
$ bin/console assets:install -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 -e test | ||
$ open http://localhost:8080 | ||
$ bin/behat | ||
$ bin/phpspec run | ||
``` | ||
# About us | ||
|
||
--- | ||
|
||
BitBag is a company of people who **love what they do** and do it right. We fulfill the eCommerce technology stack with **Sylius**, Shopware, Akeneo, and Pimcore for PIM, eZ Platform for CMS, and VueStorefront for PWA. Our goal is to provide real digital transformation with an agile solution that scales with the **clients’ needs**. Our main area of expertise includes eCommerce consulting and development for B2C, B2B, and Multi-vendor Marketplaces.</br> | ||
We are advisers in the first place. We start each project with a diagnosis of problems, and an analysis of the needs and **goals** that the client wants to achieve.</br> | ||
We build **unforgettable**, consistent digital customer journeys on top of the **best technologies**. Based on a detailed analysis of the goals and needs of a given organization, we create dedicated systems and applications that let businesses grow.<br> | ||
Our team is fluent in **Polish, English, German and, French**. That is why our cooperation with clients from all over the world is smooth. | ||
|
||
**Some numbers from BitBag regarding Sylius:** | ||
- 50+ **experts** including consultants, UI/UX designers, Sylius trained front-end and back-end developers, | ||
- 120+ projects **delivered** on top of Sylius, | ||
- 25+ **countries** of BitBag’s customers, | ||
- 4+ **years** in the Sylius ecosystem. | ||
|
||
**Our services:** | ||
- Business audit/Consulting in the field of **strategy** development, | ||
- Data/shop **migration**, | ||
- Headless **eCommerce**, | ||
- Personalized **software** development, | ||
- **Project** maintenance and long term support, | ||
- Technical **support**. | ||
|
||
**Key clients:** Mollie, Guave, P24, Folkstar, i-LUNCH, Elvi Project, WestCoast Gifts. | ||
|
||
--- | ||
|
||
If you need some help with Sylius development, don't be hesitated to contact us directly. You can fill the form on [this site](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) or send us an e-mail at [email protected]! | ||
|
||
--- | ||
|
||
[![](https://bitbag.io/wp-content/uploads/2021/08/sylius-badges-transparent-wide.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) | ||
|
||
|
||
## Community | ||
|
||
---- | ||
|
||
For online communication, we invite you to chat with us & other users on [Sylius Slack](https://sylius-devs.slack.com/). | ||
|
||
# Demo Sylius Shop | ||
|
||
--- | ||
|
||
We created a demo app with some useful use-cases of plugins! | ||
Visit [sylius-demo.bitbag.io](https://sylius-demo.bitbag.io/) to take a look at it. The admin can be accessed under | ||
[sylius-demo.bitbag.io/admin/login](https://sylius-demo.bitbag.io/admin/login) link and `bitbag: bitbag` credentials. | ||
Plugins that we have used in the demo: | ||
|
||
| BitBag's Plugin | GitHub | Sylius' Store| | ||
| ------ | ------ | ------| | ||
| ACL Plugin | *Private. Available after the purchasing.*| https://plugins.sylius.com/plugin/access-control-layer-plugin/| | ||
| Braintree Plugin | https://github.com/BitBagCommerce/SyliusBraintreePlugin |https://plugins.sylius.com/plugin/braintree-plugin/| | ||
| CMS Plugin | https://github.com/BitBagCommerce/SyliusCmsPlugin | https://plugins.sylius.com/plugin/cmsplugin/| | ||
| Elasticsearch Plugin | https://github.com/BitBagCommerce/SyliusElasticsearchPlugin | https://plugins.sylius.com/plugin/2004/| | ||
| Mailchimp Plugin | https://github.com/BitBagCommerce/SyliusMailChimpPlugin | https://plugins.sylius.com/plugin/mailchimp/ | | ||
| Multisafepay Plugin | https://github.com/BitBagCommerce/SyliusMultiSafepayPlugin | | ||
| Wishlist Plugin | https://github.com/BitBagCommerce/SyliusWishlistPlugin | https://plugins.sylius.com/plugin/wishlist-plugin/| | ||
| **Sylius' Plugin** | **GitHub** | **Sylius' Store** | | ||
| Admin Order Creation Plugin | https://github.com/Sylius/AdminOrderCreationPlugin | https://plugins.sylius.com/plugin/admin-order-creation-plugin/ | | ||
| Invoicing Plugin | https://github.com/Sylius/InvoicingPlugin | https://plugins.sylius.com/plugin/invoicing-plugin/ | | ||
| Refund Plugin | https://github.com/Sylius/RefundPlugin | https://plugins.sylius.com/plugin/refund-plugin/ | | ||
|
||
**If you need an overview of Sylius' capabilities, schedule a consultation with our expert.** | ||
|
||
[![](https://bitbag.io/wp-content/uploads/2020/10/button_free_consulatation-1.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) | ||
|
||
## Additional resources for developers | ||
|
||
--- | ||
To learn more about our contribution workflow and more, we encourage you to use the following resources: | ||
* [Sylius Documentation](https://docs.sylius.com/en/latest/) | ||
* [Sylius Contribution Guide](https://docs.sylius.com/en/latest/contributing/) | ||
* [Sylius Online Course](https://sylius.com/online-course/) | ||
|
||
|
||
## License | ||
|
||
--- | ||
|
||
This plugin's source code is completely free and released under the terms of the MIT license. | ||
|
||
[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.) | ||
|
||
## Contact | ||
|
||
## Contribution | ||
--- | ||
If you want to contact us, the best way is to fill the form on [our website](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) or send us an e-mail to [email protected] with your question(s). We guarantee that we answer as soon as we can! | ||
|
||
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/. | ||
[![](https://bitbag.io/wp-content/uploads/2021/08/badges-bitbag.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) |
Oops, something went wrong.