PHPackages                             gigantier/php-sdk - 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. gigantier/php-sdk

ActiveLibrary

gigantier/php-sdk
=================

SDK for Gigantier API

1.0.1(7y ago)210MITPHPPHP &gt;=5.5.0

Since Aug 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Gigantier/php-sdk)[ Packagist](https://packagist.org/packages/gigantier/php-sdk)[ RSS](/packages/gigantier-php-sdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Gigantier PHP SDK
=================

[](#gigantier-php-sdk)

[![build](https://camo.githubusercontent.com/a9566d8c2da2dcea3d18fdaae7a415f22f204826ae4f6c1f82e43ab34eba3c25/68747470733a2f2f7472617669732d63692e6f72672f476967616e746965722f7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Gigantier/php-sdk)

> SDK to connect your PHP app to Giganter API.

Installation
------------

[](#installation)

You can install the package manually or by adding it to your `composer.json`:

```
{
  "require": {
    "gigantier/php-sdk": "^1.0.0"
  }
}

```

Usage
-----

[](#usage)

To get started, instantiate a new Gigantier client with your credentials.

> **Note:** This requires a [Gigantier](http://gigantier.com) account.

```
$config = new Config();
$config->clientId = '{your_client_id}';
$config->clientSecret = '{your_client_secret}';
$config->scope = '{api_scope}';

$gigantier = new Gigantier\Client($config);
```

Check out the [API reference](https://docs.gigantier.com/?php) to learn more about authenticating and the available endpoints.

### API Call

[](#api-call)

Here is an example of api call:

```
$response = $gigantier->call("/Category/list");
if ($response->isError()) {
  // Error response
} else {
  // Ok response
}
```

### Authentication

[](#authentication)

Some endpoints need the user to be authenticated, once they are obtained, the `authenticate()` method must be called:

```
$response = $gigantier->authenticate("foo@test.com", "1111111");
if ($response->isError()) {
  // Error response
} else {
  // Ok response
}
```

### Authenticated API Call

[](#authenticated-api-call)

Here is an example of and authenticated api call. Keep in mind that the method `authenticate()` must be executed first:

```
$response = $gigantier->authenticatedCall('/User/me');
if ($response->isError()) {
  // Error response
} else {
  // Ok response
}
```

### Data Post

[](#data-post)

To perform data post you need to pass an array with that data to `call()` method:

```
$data = array('name' => 'John', 'surname' => 'Doe');
$response = $gigantier->authenticatedCall('/User/me', $data);
if ($response->isError()) {
  // Error response
} else {
  // Ok response
}
```

Test
----

[](#test)

Before running the tests execute:

```
composer install
```

Then you can run the tests:

```
vendor/bin/phpunit
```

To generate a coverage report:

```
vendor/bin/phpunit --coverage-html ./coverage
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to Gigantier PHP SDK.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5573054fd045bac2fd3d814a318c78eea0ef064b1c368f533a2372e93d21f48b?d=identicon)[mettini](/maintainers/mettini)

---

Top Contributors

[![mettini](https://avatars.githubusercontent.com/u/819260?v=4)](https://github.com/mettini "mettini (7 commits)")

---

Tags

api-clientecommercegigantierphpphp-sdksdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gigantier-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gigantier-php-sdk/health.svg)](https://phpackages.com/packages/gigantier-php-sdk)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
