sandipchandela/bigcommerce-php
最新稳定版本:1.0.1
Composer 安装命令:
composer require sandipchandela/bigcommerce-php
包简介
The bigcommerce php based on PHP
关键字:
README 文档
README
Overview
This is a basic BigCommerce app built with PHP 8.3 that handles installation, uninstallation, and various callbacks.
Prerequisites
- PHP 8.3
- Composer
- MongoDB or MySQL
- Ngrok (for local testing)
Setup
-
Clone the repository:
git clone https://github.com/sandipchandela/bigcommerce-php.git cd bigcommerce-php -
Install dependencies:
composer install -vvv
-
Configure environment variables:
Create a .env file in the root directory with the following content:
APP_HOSTNAME=<your_ngrok_hostname> DB_URI=<your_mongo_db_uri> BC_CLIENT_SECRET=<your_bigcommerce_client_secret> SCOPES=store_v2_content,store_v2_information,store_v2_settings DB_HOST=localhost DB_NAME=bigc-app DB_USER=root DB_PASS="@)@$CatchMe123 BC_CLIENT_SECRET=<bigcommerce_client_secret>
- local server with Ngrok
ngrok http 80
Routes
- Auth Callback URL: /bigcommerce/install
- Load Callback URL: /bigcommerce/load
- Uninstall Callback URL: /bigcommerce/uninstall
- Webhook Listener URL: /bigcommerce/webhook
Testing
Run PHPUnit tests:
./vendor/bin/phpunit tests -vvv
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-08-04