There is no license information available for the latest version (dev-main) of this package.

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

Fund package maintenance!
openerpid

dev-main 2025-04-26 07:00 UTC

This package is auto-updated.

Last update: 2025-04-26 07:01:10 UTC


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';