PHPackages                             furious-squad/furious-api-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. [API Development](/categories/api)
4. /
5. furious-squad/furious-api-sdk

ActiveLibrary[API Development](/categories/api)

furious-squad/furious-api-sdk
=============================

Furious API client SDK

1.0.3(7mo ago)013↓100%Apache-2.0PHPPHP &gt;=7.4CI passing

Since Jul 11Pushed 7mo agoCompare

[ Source](https://github.com/furious-squad/furious-api-sdk)[ Packagist](https://packagist.org/packages/furious-squad/furious-api-sdk)[ Docs](https://www.furious-squad.com/)[ RSS](/packages/furious-squad-furious-api-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Furious PHP SDK
===============

[](#furious-php-sdk)

[![Latest Packagist Version](https://camo.githubusercontent.com/8e645377044d7c32272115e3b025a5319c7256e4f04938d80fe5c31109df37b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667572696f75732d73717561642f667572696f75732d6170692d73646b3f6c6f676f3d676974687562266c6f676f436f6c6f723d7768697465267374796c653d666c61742d737175617265)](https://packagist.org/packages/furious-squad/furious-api-sdk)[![Total Downloads](https://camo.githubusercontent.com/8a3212e80ff24fbb24fc9ac5c8d40feff8601de1384c8bf7d91a14b0ca356ca3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667572696f75732d73717561642f667572696f75732d6170692d73646b2e7376673f6c6f676f3d676974687562266c6f676f436f6c6f723d7768697465267374796c653d666c61742d737175617265)](https://packagist.org/packages/furious-squad/furious-api-sdk)[![Tests PHPUnit](https://github.com/furious-squad/furious-api-sdk/actions/workflows/phpunit.yml/badge.svg)](https://github.com/furious-squad/furious-api-sdk/actions/workflows/phpunit.yml/badge.svg)

The **Furious PHP SDK** provides convenient access to the [Furious ERP API](https://furious-squad.com) from PHP applications. It is designed for developers building integrations with Furious ERP features such as CRM, project tracking, time management, HR, accounting, and more.

---

🚀 Getting Started
-----------------

[](#-getting-started)

### Requirements

[](#requirements)

- PHP ^7.4

### Installation

[](#installation)

```
composer require furious-squad/furious-api-sdk
```

---

⚙️ SDK Initialization
---------------------

[](#️-sdk-initialization)

```
use Furious\FuriousApiSdk\FuriousApiSdk;
use Furious\FuriousApiSdk\Model\Config;

$config = new Config("https://");
$sdk = new FuriousApiSdk($config, [
  'timeout' => 5
]);
```

---

🔐 Authentication
----------------

[](#-authentication)

```
$sdk->authenticate([
  'username' => 'myAPIUsername',
  'password' => 'myAPIPassword'
]);
```

This method sets a valid JWT token for the session, used for all authorized API calls.

---

📚 Resource Usage Guide
----------------------

[](#-resource-usage-guide)

### Access a Resource

[](#access-a-resource)

```
use Furious\FuriousApiSdk\Resource\Absence;

$absence = $sdk->getResource(Absence::class);
```

### Basic Search (no filters)

[](#basic-search-no-filters)

```
$results = $absence->search(['pseudo']);
```

### Filtered Search

[](#filtered-search)

```
use Furious\FuriousApiSdk\Query\Filter\Equal;

$results = $absence->search(
  ['pseudo', 'status', 'start_date'],
  [ Equal::set('pseudo', 'john.doe') ]
);
```

### Filtered &amp; Sorted Search

[](#filtered--sorted-search)

```
use Furious\FuriousApiSdk\Query\Order\OrderAsc;

$results = $absence->search(
  ['pseudo', 'status', 'start_date'],
  [ Equal::set('pseudo', 'john.doe') ],
  [ OrderAsc::field('start_date') ]
);
```

### Create a Resource

[](#create-a-resource)

```
$response = $absence->create([
  'pseudo'     => 'john.doe',
  'start_date' => '2025-01-01',
  'end_date'   => '2025-01-05',
  'entity'     => 'entity_1',
  'half_day'   => '0',
  'type'       => 'home_office'
]);
```

### Update a Resource

[](#update-a-resource)

```
$updateResponse = $absence->update([
  'id'         => $absenceId,
  'pseudo'     => 'jane.doe',
  'start_date' => '2025-01-02',
  'end_date'   => '2025-01-06'
]);
```

### Create with Custom Fields

[](#create-with-custom-fields)

```
use Furious\FuriousApiSdk\Resource\Contract;

$contract = $sdk->getResource(Contract::class);

$response = $contract->create([
  'name'               => 'Example Company',
  'date_limit'         => '2025-07-03',
  'client_company_id'  => 12345,
  'project_id'         => 12345,
  'content'            => 'Example content',
  'prevenance'         => 123,
  'tacite_reconduction'=> 456,
  'entity'             => 'entity_3',
  'custom_fields'      => [
    [ 'name' => 'custom_field_1', 'value' => 'value_1' ],
    [ 'name' => 'custom_field_2', 'value' => 'value_2' ]
  ]
]);
```

### Advanced Filter: `IsNull`

[](#advanced-filter-isnull)

```
use Furious\FuriousApiSdk\Query\Filter\IsNull;

$results = $absence->search(
  ['id', 'pseudo', 'end_date'],
  [ IsNull::set('end_date') ]
);
```

### Generate GraphQL Query String

[](#generate-graphql-query-string)

```
$gql = $absence->buildSearchString(
  ['pseudo', 'start_date'],
  [ Equal::set('pseudo', 'jane.doe') ],
  [ OrderAsc::field('start_date') ]
);

echo $gql;
```

### Batch Create (up to 10 entries)

[](#batch-create-up-to-10-entries)

```
$response = $absence->create([
  [
    'pseudo'     => 'john.doe',
    'start_date' => '2025-09-01',
    'end_date'   => '2025-09-05',
    'entity'     => 'entity_1',
    'half_day'   => '0',
    'type'       => 'home_office'
  ],
  [
    'pseudo'     => 'jane.doe',
    'start_date' => '2025-10-01',
    'end_date'   => '2025-10-05',
    'entity'     => 'entity_2',
    'half_day'   => '0',
    'type'       => 'home_office'
  ]
]);
```

---

❗ Error Handling
----------------

[](#-error-handling)

All SDK operations may throw:

- `Furious\FuriousApiSdk\Exception\SdkException`
- `Furious\FuriousApiSdk\Exception\ApiException`

Use try/catch blocks to handle them gracefully.

---

Run unit tests
--------------

[](#run-unit-tests)

```
vendor/bin/phpunit ./tests

```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance69

Regular maintenance activity

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~29 days

Total

4

Last Release

213d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bb1647229e10044bdc9bffe324d58e113e5992ac494fa758f3ed60fa9f897d9?d=identicon)[furious](/maintainers/furious)

---

Top Contributors

[![furiousjeremy](https://avatars.githubusercontent.com/u/83576363?v=4)](https://github.com/furiousjeremy "furiousjeremy (3 commits)")[![furiousvincent](https://avatars.githubusercontent.com/u/220872446?v=4)](https://github.com/furiousvincent "furiousvincent (3 commits)")[![jeremyfabre](https://avatars.githubusercontent.com/u/13367423?v=4)](https://github.com/jeremyfabre "jeremyfabre (2 commits)")

---

Tags

phpapisdkfurious

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/furious-squad-furious-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/furious-squad-furious-api-sdk/health.svg)](https://phpackages.com/packages/furious-squad-furious-api-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M23](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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