storessuite/wix 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

storessuite/wix

最新稳定版本:0.0.40

Composer 安装命令:

composer require storessuite/wix

包简介

Wix integration for Laravel apps.

README 文档

README

Wix is a Laravel package to integrate Wix. It provides:

  1. SDK for interacting with Wix API.
  2. Database for representing Wix resources in your app.

Github

https://github.com/storessuite/wix.git

Implementation

  1. composer require storessuite/wix
  2. php artisan migrate
  3. Setup .env
WIX_APP_ID=<Your wix app's ID>
WIX_CLIENT_SECRET=<Your wix app's client secret>
  1. Add a route ${APP_URL}/wix/oauth/complete. You will receive state and wixSiteId at this endpoint after installation is complete. This can be a good place to create a connection between wix site and authenticated user.

Wix Contract

You should create a class by implement WixContract and bind WixContract with the class. This is required when wix installation is complete and Wix package needs to access app's services to complete installation. Like creating users for wix site.

Requirements

  1. PHP 8.3 or higher
  2. Laravel 11 or higher

Contribution

Conventions

Database table naming convention

  • _id = ID of a resource on Wix. For example: ID of Wix product is stored as _id in wix_products table.
  • Append all tables with wix_. This will group all Wix related tables together.
  • Pivot tables have related tables names in singular form. For example: wix_site_wix_site_contributor is a pivot table for wix_sites and wix_site_constributors tables.
  • Tables names should be plural word of the resource. For example: wix_products. For certain words, there is no trailing s. For example: table media should represent all media related data.

Model convention

  • All relations should ommit the word Wix. For example: variants() defines a relationship for WixVariant.

统计信息

  • 总下载量: 83
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-04