rawaby88/shopify-oauth-laravel
Composer 安装命令:
composer require rawaby88/shopify-oauth-laravel
包简介
A simple package to make Shopify App Oauth easy.
README 文档
README
This package provides a convenient way to integrate Shopify OAuth authentication into your Laravel application. It simplifies the process of setting up OAuth with Shopify, allowing you to focus on building your application's features rather than dealing with the intricacies of authentication.
Installation
You can install this package via Composer. Run the following command in your terminal:
composer require joymendonca/shopify-oauth-laravel
Configuration
After installing the package, you'll need to publish and run the migrations with:
php artisan vendor:publish --tag="shopify-oauth-laravel-migrations"
php artisan migrate
You can also publish the config file using:
php artisan vendor:publish --tag="shopify-oauth-laravel-config"
You will now need to setup the environment variables in your .env file:
APP_URL="https://your-website.com" #The base url for your website SHOPIFY_CLIENT_ID="your-shopify-client-id" #Shopify App Client ID SHOPIFY_CLIENT_SECRET="your-shopify-client-secret" #Shopify App Client Secret SHOPIFY_SCOPES="read_products,write_products" #Shopify App Scopes Needed SHOPIFY_APP_HOME_URL='/' #URL you want the user to get redirected to when the launch the app
You can register the routes using the code below in web.php:
use joymendonca\ShopifyOauthLaravel\ShopifyOAuthLaravelRoutes; ShopifyOAuthLaravelRoutes::register();
Make sure the app install url registered in your shopify app is "https://your-website.com/shopify-app-auth/install" and the redirect url is "https://your-website.com/shopify-app-auth/load"
Usage
Once the package is installed and configured, you can start using Shopify OAuth in your Laravel application.
You can get the access token and store url of the logged in as below:
use joymendonca\ShopifyOauthLaravel\Facades\ShopifyOauthLaravel; $access_token = ShopifyOauthLaravel::getStoreAccessToken(); $store_url = ShopifyOauthLaravel::getStoreUrl();
rawaby88/shopify-oauth-laravel 适用场景与选型建议
rawaby88/shopify-oauth-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 325 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 05 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Joy Mendonca」 「shopify-oauth-laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rawaby88/shopify-oauth-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rawaby88/shopify-oauth-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rawaby88/shopify-oauth-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This Laravel/Voyager module adds VoyagerExport support to Voyager.
This Laravel/Voyager module adds VoyagerRelationsTable support to Voyager.
This Laravel/Voyager module adds VoyagerBreadNotification support to Voyager.
This Laravel/Voyager module adds VoyagerUserSettings support to Voyager.
This Laravel/Voyager module adds VoyagerWidgets support to Voyager.
This Laravel/Voyager module adds VoyagerLoginAsUser support to Voyager.
统计信息
- 总下载量: 325
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-10