monsieurbiz/sylius-coliship-plugin
最新稳定版本:v2.0.4
Composer 安装命令:
composer require monsieurbiz/sylius-coliship-plugin
包简介
Improve your Sylius for Coliship.
README 文档
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 |
|---|---|
| 2.0, 2.1 | 8.2 - 8.3 |
ℹ️ For Sylius 1.x, see our 1.x branch and all 1.x releases.
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/config.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.
统计信息
- 总下载量: 11.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-13
