monsieurbiz / sylius-coliship-plugin
Improve your Sylius for Coliship.
Installs: 8 409
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 7
Forks: 5
Open Issues: 2
Type:sylius-plugin
Requires
- php: ^8.2
- ext-mbstring: *
- monsieurbiz/sylius-settings-plugin: ^1.3.0
- sylius/sylius: >=1.12 <2.0
Requires (Dev)
- behat/behat: ^3.6.1
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.15
- phpspec/phpspec: ^7.0
- phpstan/phpstan: ^1.8.4
- phpstan/phpstan-doctrine: ^1.3.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2025-03-13 10:49:38 UTC
README
Coliship for Sylius
This plugin gives you an enhanced address with all Coliship fields (that's all for now).
Compatibility
Sylius Version | PHP Version |
---|---|
1.12 | 8.2 - 8.3 |
1.13 | 8.2 - 8.3 |
1.14 | 8.2 - 8.3 |
Installation
If you want to use our recipes, you can configure your composer.json by running:
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
composer require monsieurbiz/sylius-coliship-plugin
Change your config/bundles.php
file to add the line for the plugin :
<?php return [ //.. MonsieurBiz\SyliusColishipPlugin\MonsieurBizSyliusColishipPlugin::class => ['all' => true], ];
Then create the config file in config/packages/monsieurbiz_coliship_plugin.yaml
:
imports: - { resource: "@MonsieurBizSyliusColishipPlugin/Resources/config/monsieurbiz/settings.yaml" } - { resource: "@MonsieurBizSyliusColishipPlugin/Resources/config/sylius/grid.yaml" } - { resource: "@MonsieurBizSyliusColishipPlugin/Resources/config/sylius/ui.yaml" }
Then import the routes in config/routes/monsieurbiz_coliship_plugin.yaml
:
monsieurbiz_coliship_admin: resource: "@MonsieurBizSyliusColishipPlugin/Resources/config/routes/admin.yaml" prefix: /%sylius_admin.path_name%
Update App\Entity\Shipping\ShippingMethod
to implements ColishipShippingMethodInterface
and use ColishipShippingMethodTrait
.
Update App\Entity\Addressing\Address
to implements ColishipAddressInterface
and use ColishipAddressTrait
.
Finally, update your database schema :
bin/console doctrine:migrations:diff bin/console doctrine:migrations:migrate
Contributing
You can find a way to run the plugin without effort in the file DEVELOPMENT.md.
Then you can open an issue or a Pull Request if you want! 😘
Thank you!
License
This plugin is completely free and released under the MIT License.