compwright/oauth2-servicetitan 问题修复 & 功能扩展

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

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

compwright/oauth2-servicetitan

最新稳定版本:2.0.0

Composer 安装命令:

composer require compwright/oauth2-servicetitan

包简介

ServiceTitan OAuth 2.0 Client Provider for The PHP League OAuth2-Client

README 文档

README

Latest Version Total Downloads

This package provides ServiceTitan OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require compwright/oauth2-servicetitan league/oauth2-client 

Usage

Create the provider instance using the \Compwright\OAuth2\Servicetitan\ServicetitanProviderFactory factory class.

Example: Authorization Code Flow

$factory = new Compwright\OAuth2\Servicetitan\ServicetitanProviderFactory(); $provider = $factory->new( clientId: null, // optional, recommended to pass as an option to getAccessToken() clientSecret: null, // optional, recommended to pass as an option to getAccessToken() sandbox: false, // enable for sandbox environment enterprise: false // enable for Enterprise Hub clients ); // Get an access token using the authorization code grant $token = $provider->getAccessToken('client_credentials', [ 'client_id' => '{servicetitan-client-id}', 'client_secret' => '{servicetitan-client-secret}', // required for Enterprise Hub clients: 'tenant' => '{servicetitan-tenant-id}', ]); // Use the token to interact with an API on the users behalf echo $token->getToken();

Testing

$ make test

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固