承接 pns/laravel-qbo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pns/laravel-qbo

Composer 安装命令:

composer require pns/laravel-qbo

包简介

This is a Laravel package for integrating QuickBooks Online API.

README 文档

README

This is a Laravel package for integrating QuickBooks Online API.

Getting Started

Below are the steps in order to integrate QuickBooks Online API to your Laravel project.

Installation

Install the package using composer:

  composer require pns/laravel-qbo

Export the configuration file:

  php artisan vendor:publish --provider="Pns\LaravelQbo\Providers\LaravelQboServiceProvider" --tag="config"

Export the migration files:

  php artisan vendor:publish --provider="Pns\LaravelQbo\Providers\LaravelQboServiceProvider" --tag="migrations"

Do a quick migration:

  php artisan migrate

Environment Variables

In order to run this package, you will need to add the following environment variables to your .env file

QBO_AUTH_MODE=oauth2

QBO_ATH_REQUEST_URL=https://appcenter.intuit.com/connect/oauth2

QBO_TOKEN_END_POINT_URL=https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer

QBO_CLIENT_ID=

QBO_CLIENT_SECRET=

QBO_REDIRECT_URI=

QBO_SCOPE=com.intuit.quickbooks.accounting

QBO_BASE_URL=Development

QBO_COMPANY_ID=

You may follow the steps on how to get the environment variables here: https://developer.intuit.com/app/developer/homepage

or follow the steps below

Generating Environment Variables

  1. Log in to your QuickBooks Online account at https://accounts.intuit.com

  2. After logging in, go to https://developer.intuit.com/app/developer/sandbox in order to create a new sandbox company.

  1. Add a sandbox company.

  1. After creating a sandbox company, copy the Company ID to be used in QBO_COMPANY_ID environment variable.

  1. Then, go to https://developer.intuit.com/app/developer/dashboard.

  1. Create an app.

  1. Complete the form in order to create a new app.

  1. Upon creation, you will be redirected to the Getting Started page for your app.

  1. Go to Keys and credentials. Copy the Client ID and Client Secret to QBO_CLIENT_ID and QBO_CLIENT_SECRET respectively.

  1. Scroll down to create or copy the Redirect URI to QBO_REDIRECT_URI.

How To Use

Download Postman API

Download the Postman API Collection here.

Authentication

Use this in order to authenticate and refresh the access token.

Controller

  \Pns\LaravelQbo\Http\Controllers\QboAuthController

Authenticate Token

Postman URL:

  {{url}}/qbo/authorize

Response:

  {
    "authorizationCodeUrl": "https://appcenter.intuit.com/connect/oauth2?client_id=ABEP4t682b0kTjxo8G6yuJGftr506G6oZ5DsOMP0b2MbSHdWP2&scope=com.intuit.quickbooks.accounting&redirect_uri=https%3A%2F%2Fdeveloper.intuit.com%2Fv2%2FOAuth2Playground%2FRedirectUrl&response_type=code&state=DATTK"
  }

Refresh Token

Postman URL:

  {{url}}/qbo/token-save

Request:

  {
    "code": "AB11645453718yt4XS3Ngih24yMxDSQYXYG4Hpy2oR6lNkC87L",
    "realmId": "4620816365213659530" 
  }

Response:

  {
    "message": "Token refreshed.",
    "accessToken": {
      "access_token": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..GpEotUwWZJnVEbrOGYSLcg.AdIOfTVbSs73d8-b0wgmFnbgIPbrUKWoIW6_9FJQ27lKWO5xXy5VykvAyUEd_PUpBLhpXfhnnXMkvO_75YecvducgHCHlFy9NdBGfy1WCpkZ8OZQTKIdC1Up4FrsPurK7eAqY8y1-eJNcgARK4TyLtwy14dWeIvZXe3v3uHFtsSz5BsiGj8mC1o9MoKdvFep6BgOtBeZu_nacr7qcPlTXAztWNLLExhZtzSlJqMMMcjErHJ0SOpCZfauba_KrzCT5m0GBmyHvT-maV4EbseiK_hjhdegh0T1kkznxZK92j3tPfqCeAGL3IxJQT2iJlpgyGmTTotX2Mnoz6OPPykxN-8SRh8itzOdqPquQ-P4eqXI-XtnIiHzWBhyi-jvTAfGWuTYx5ohKOQKGvOiyDV4xbqkYw-XNbwsGLtF9EUY-Z8HWk6waj5g07O_-WxOY8lOlhJ4u7lkMaCLm6KMSHLNhfwRykp81wlxac80IQF8_InBseH1jVfShP89WMgYdGzuoy-8hY9jXwBgDudVm5uoqhQiIMaLbZQ1_V1XuHs9-1pBsLtq4KjoabTCJ3lma_cv-wff0plsXDaQFih-StmyWWvBZYRzRPvWbloTsGDEt8WxIANUd2AWZhZFwfJIxkgTpfLnDEySg2QyV-LoNjFU_FAYulFGn1-V6b7JBBYTEJkZXssVGRcy62zGzw_K0Y5DlJUnesbShcAA9rwrA7L430DPi_yYLm472-OKWjhM9OaeR2f6QcrsUxuhj96XcwQd.CynAG529fBQbeDV7OY7WRw",
      "refresh_token": "AB116541797850qjxumAQNzUirNxrOs9C8Sj0U1o59iT0Ev2o2",
      "x_refresh_token_expires_in": "2022/06/02 14:23:05",
      "expires_in": "2022/02/21 15:23:05"
    }
  }

Company

Use this in order to get and update your company profile.

Controller

  \Pns\LaravelQbo\Http\Controllers\QboCompanyController

Get Company Profile

Postman URL:

  {{url}}/qbo/company

Response:

  {
    "authorizationCodeUrl": "https://appcenter.intuit.com/connect/oauth2?client_id=ABEP4t682b0kTjxo8G6yuJGftr506G6oZ5DsOMP0b2MbSHdWP2&scope=com.intuit.quickbooks.accounting&redirect_uri=https%3A%2F%2Fdeveloper.intuit.com%2Fv2%2FOAuth2Playground%2FRedirectUrl&response_type=code&state=DATTK"
  }

Features

  • Authentication
  • Company Profile
    • View
  • Invoice
    • Create
    • View
    • Delete
    • List
    • Send To Email
  • Customer
    • Create
    • View
    • Delete
    • List

Support

For support, email jeddsaliba@gmail.com or join our Slack channel.

Fly high, butterfly!

pns/laravel-qbo 适用场景与选型建议

pns/laravel-qbo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 65 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 pns/laravel-qbo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pns/laravel-qbo 我们能提供哪些服务?
定制开发 / 二次开发

基于 pns/laravel-qbo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-20