PHPackages                             kyano-digital/wefact-php - 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. kyano-digital/wefact-php

ActiveLibrary[API Development](/categories/api)

kyano-digital/wefact-php
========================

A complete PHP package for the WeFact API, covers all resources. Works with Laravel and plain PHP.

v1.0.7(3w ago)28MITPHPPHP ^8.1CI passing

Since May 8Pushed 3w agoCompare

[ Source](https://github.com/Kyano-digital/wefact-php)[ Packagist](https://packagist.org/packages/kyano-digital/wefact-php)[ RSS](/packages/kyano-digital-wefact-php/feed)WikiDiscussions master Synced 1w ago

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

kyano-digital/wefact-php
========================

[](#kyano-digitalwefact-php)

A complete PHP client for the [WeFact API](https://developer.wefact.com) — covers all resources and every documented action. Works with Laravel (via ServiceProvider + Facade) and plain PHP.

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

[](#installation)

```
composer require kyano-digital/wefact-php
```

### Laravel setup

[](#laravel-setup)

Laravel auto-discovers the ServiceProvider and Facade. Publish the config:

```
php artisan vendor:publish --tag=wefact-config
```

Add your API key to `.env`:

```
WEFACT_API_KEY=your-api-key-here
```

### Plain PHP setup

[](#plain-php-setup)

```
use KyanoDigital\WeFact\WeFact;

$wefact = new WeFact(apiKey: 'your-api-key-here');
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

```
use Kyano\WeFact\Facades\WeFact;

WeFact::debtors()->add([
    'CompanyName' => 'Company Inc.',
    'EmailAddress' => 'employee@company.inc',
]);

WeFact::invoices()->add([
    'DebtorCode' => 'DB10001',
    'InvoiceLines' => [
        ['Description' => 'Product', 'PriceExcl' => 150.00, 'TaxCode' => 'V21'],
    ],
]);
```

### Plain PHP

[](#plain-php)

```
use KyanoDigital\WeFact\WeFact;

$wefact = new WeFact(apiKey: 'your-api-key-here');

$debtor = $wefact->debtors()->add([
    'CompanyName'  => 'Company Inc.',
    'EmailAddress' => 'employee@company.inc',
]);
```

---

Error Handling
--------------

[](#error-handling)

All methods throw `WeFactException` on API errors or HTTP failures.

```
use Kyano\WeFact\Exceptions\WeFactException;

try {
    WeFact::invoices()->add([...]);
} catch (WeFactException $e) {
    // Human-readable message
    $e->getMessage();

    // Array of WeFact API error strings
    $e->getApiErrors();

    // Full raw API response
    $e->getApiResponse();
}
```

---

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

Copyright (c) 2026 Kyano Digital B.V.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance95

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Total

8

Last Release

22d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad3e70e72c22ea2a1c9fe285fdc8fcbc28eeacdfed1e993504d2b5d6ad2a74cd?d=identicon)[RonnieKyano](/maintainers/RonnieKyano)

---

Top Contributors

[![NukeJS](https://avatars.githubusercontent.com/u/32038256?v=4)](https://github.com/NukeJS "NukeJS (10 commits)")

---

Tags

apilaravelinvoicingwefactfacturering

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kyano-digital-wefact-php/health.svg)

```
[![Health](https://phpackages.com/badges/kyano-digital-wefact-php/health.svg)](https://phpackages.com/packages/kyano-digital-wefact-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.2M45](/packages/tencentcloud-tencentcloud-sdk-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74287.1k1](/packages/mozex-anthropic-laravel)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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