Download the PHP package webgriffe/sylius-table-rate-shipping-plugin without Composer
On this page you can find all versions of the php package webgriffe/sylius-table-rate-shipping-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webgriffe/sylius-table-rate-shipping-plugin
More information about webgriffe/sylius-table-rate-shipping-plugin
Files in webgriffe/sylius-table-rate-shipping-plugin
Package sylius-table-rate-shipping-plugin
Short Description Provides table rate shipping calculator.
License MIT
Informations about the package sylius-table-rate-shipping-plugin
Table Rate Shipping Plugin
This plugin allows to define shipping rates using weight tables.
Installation
-
Run
composer require --no-scripts webgriffe/sylius-table-rate-shipping-plugin
. -
Add the plugin to the
config/bundles.php
file: -
Add the plugin's config to by creating the file
config/packages/webgriffe_sylius_table_rate_shipping_plugin.yaml
with the following content: -
Add the plugin's routing by creating the file
config/routes/webgriffe_sylius_table_rate_shipping_plugin.yaml
with the following content: - Finish the installation by updating the database schema and installing assets:
Contributing
To contribute you need to:
-
Clone this repository into you development environment and go to the plugin's root directory,
-
Then, from the plugin's root directory, run the following commands:
-
Copy
tests/Application/.env
intests/Application/.env.local
and set configuration specific for your development environment. -
Then, from the plugin's root directory, run the following commands:
- Now at http://localhost:8080/ you have a full Sylius testing application which runs the plugin
Testing
After your changes you must ensure that the tests are still passing.
First setup your test database:
This plugin's test application already comes with a test configuration that uses SQLite as test database.
If you don't want this you can create a tests/Application/.env.test.local
with a different DATABASE_URL
.
The current CI suite runs the following tests:
-
Easy Coding Standard
-
PHPStan
-
PHPUnit
-
PHPSpec
-
Behat (without Javascript)
- Behat (only Javascript)
To run them all with a single command run:
To run Behat's Javascript scenarios you need to setup Selenium and Chromedriver. Do the following:
-
Start Headless Chrome:
- Install SSL certificates (only once needed) and run test application's webserver on
127.0.0.1:8080
:
License
This library is under the MIT license. See the complete license in the LICENSE file.
Credits
Developed by Webgriffe®.