定制 sparkhizb/lib 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sparkhizb/lib

Composer 安装命令:

composer require sparkhizb/lib

包简介

Sparkhizb is a full-featured library creation and transfer class for PHP

README 文档

README

Installation & loading

Open terminal in yours project.

composer require sparkhizb/lib dev-main
cp vendor/sparkhizb/lib/src/Commands/HizbInstallCommand.php app/Commands/HizbInstallCommand.php
php spark hizb:install

Note that the vendor folder and the vendor/autoload.php script are generated by Composer; they are not part of Sparkhizb.

If you want to use XOAUTH2 authentication, you will also need to add a dependency on the league/oauth2-client and appropriate service adapters package in your composer.json, or take a look at by @decomplexity's SendOauth2 wrapper, especially if you're using Microsoft services.

A Simple Example

<?php
//Import Sparkhizb classes into the global namespace
//These must be at the top of your script, not inside a function
use Sparkhizb\Auth;
use Sparkhizb\Helpers\BuilderHelper;
use Sparkhizb\Helpers\QueryHelper;

//Load Composer's autoloader (created by composer, not included with Sparkhizb)
require 'vendor/autoload.php';

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-04-26