hexbit/sage-woocommerce
Composer 安装命令:
composer require hexbit/sage-woocommerce
包简介
Woocommerce support for sage 10
README 文档
README
This library was developed when the problems of the mentioned library were not fixed and contributions were not allowed, but now, due to the possibility of contributions, use it.
Sage Woocommerce
This package enables WooCommerce integration for Sage 10 themes and Blade templates.
Changelog
- Issue #1 fixed, please change your view renderer to
sage.woocommerce.view.
Installation
composer require hexbit/sage-woocommerce
Usage
Add Hexbit\Woocommerce\Providers\WooCommerceServiceProvider to your providers array in yourtheme/config/app.php
... /* |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | */ 'providers' => [ /** * Package Service Providers */ Hexbit\Woocommerce\Providers\WooCommerceServiceProvider::class ] ...
Or you can discover service provider by using wp cli.
wp acorn package:discover
Then create app/woocommerce.php in your app folder and override default blade files in resources/views/woocommerce, or you can create automatically by running this command
wp acorn vendor:publish --tag="woocommerce"
& finally change view renderer in your index file like this:
<?php echo \Roots\view(\Roots\app('sage.woocommerce.view'), \Roots\app('sage.data'))->render(); ?>
Done! now you will be able to override woocommerce templates with blade TE in yourtheme/resources/views/woocommerce/ directory.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
hexbit/sage-woocommerce 适用场景与选型建议
hexbit/sage-woocommerce 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.16k 次下载、GitHub Stars 达 24, 最近一次更新时间为 2020 年 11 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「blade」 「woocommerce」 「sage」 「hexbit」 「smarteist」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hexbit/sage-woocommerce 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hexbit/sage-woocommerce 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hexbit/sage-woocommerce 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Paytrail is a payment gateway that offers 20+ payment methods for Finnish customers.
WooCommerce Rest API with Laravel
The Web Solver License Manager Server
WooCommerce Rest API for PHP
A PHP Wrapper for handling REST API for License Manager for WooCommerce
Render blade templates into a PSR-7 Response object.
统计信息
- 总下载量: 7.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-26