PHPackages                             sparkhizb/lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sparkhizb/lib

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sparkhizb/lib
=============

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

1277PHP

Since Feb 5Pushed 2mo agoCompare

[ Source](https://github.com/openerpid/sparkhizb)[ Packagist](https://packagist.org/packages/sparkhizb/lib)[ RSS](/packages/sparkhizb-lib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Sparkhizb – A full-featured library creation and transfer class for PHP
=======================================================================

[](#sparkhizb--a-full-featured-library-creation-and-transfer-class-for-php)

Installation &amp; loading
--------------------------

[](#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](https://github.com/decomplexity/SendOauth2), especially if you're using Microsoft services.

A Simple Example
----------------

[](#a-simple-example)

```
