PHPackages                             spits-online/laravel-wefact-api - 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. spits-online/laravel-wefact-api

ActiveLibrary[API Development](/categories/api)

spits-online/laravel-wefact-api
===============================

A Laravel wrapper for the HostFact / WeFact API

1.0.2(2mo ago)020MITPHPPHP ^8.0

Since May 23Pushed 2mo agoCompare

[ Source](https://github.com/Spits-online/laravel-wefact-api)[ Packagist](https://packagist.org/packages/spits-online/laravel-wefact-api)[ Docs](https://github.com/Spits-online/laravel-wefact-api)[ RSS](/packages/spits-online-laravel-wefact-api/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (10)Versions (6)Used By (0)

Laravel Hostfact Wefact API wrapper
===================================

[](#laravel-hostfact-wefact-api-wrapper)

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

[](#installation)

```
composer require spits-online/laravel-wefact-api
php artisan vendor:publish --provider="Spits\WeFactApi\WeFactApiServiceProvider"
```

Configuration
-------------

[](#configuration)

Set the .ENV variables

```
WEFACT_API_KEY=
WEFACT_BASE_URI=
```

Or modify the `config/wefact.php` file.

### HostFact

[](#hostfact)

When using HostFact, modify the `config/wefact.php` and set the type to `\Spits\WeFactApi\HostFact::class`.

### Components

[](#components)

Each method supports default:

- List
- Find
- Show
- Create
- Edit
- Save

Additional methods will be documented on the component.

To start using the functionalities a new Entity must be instantiated.

```
use Spits\WeFactApi\Entities\Debtor;

$debtor = new Debtor();
```

Optionally an $Identifier parameter may be provided. When doing so automatically a `show` object call will be made to the API retrieving the objects data from WeFact. After this you can use the supported methods

```
//For the full fields list check WeFact documentation
$debtor->create([
    'Intials'           => $requestData['Initials'],
    'CompanyName'       => $requestData['CompanyName'],
    'EmailAddress'      => $requestData['EmailAddress'],
    'PhoneNumber'       => $requestData['PhoneNumber'],
    'Address'           => $requestData['Address'],
    'ZipCode'           => $requestData['ZipCode'],
    'City'              => $requestData['City'],
    'InvoiceAddress'    => $requestData['InvoiceAddress'],
]);
```

Alternatively the Wefact Facada may be used to instantiate the Entites as listed below.

#### Debtor

[](#debtor)

#### Creditor

[](#creditor)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::creditor(1);
```

#### CreditInvoice

[](#creditinvoice)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::creditInvoice(1);
```

#### Debtor

[](#debtor-1)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::debtor(1);
```

#### Group

[](#group)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::group(1);
```

#### Invoice

[](#invoice)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::invoice(1);
```

#### Product

[](#product)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::product(1);
```

#### Quote

[](#quote)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::quote(1);
```

#### Service

[](#service)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::service(1);
```

#### Subscription

[](#subscription)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::subscription(1);
```

#### Ticket

[](#ticket)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::ticket(1);
```

#### Vps

[](#vps)

```
use Spits\WeFactApi\Facades\WeFact;
WeFact::vps(1);
```

HostFact only Entities
----------------------

[](#hostfact-only-entities)

Since WeFact doesn't support domain management a few of the entities are only to be used in combination with HostFact.
These entities are listed below:

- `Entities\Domain`
- `Entities\DomainContract`
- `Entities\Hosting`
- `Entities\Ssl`
- `Entities\Vps`

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~167 days

Total

3

Last Release

74d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a197446050907985526250c3d9e6c37590d898a768422ebd0ec6b52ece55019f?d=identicon)[WebApps Spits](/maintainers/WebApps%20Spits)

---

Top Contributors

[![SpitsAdmin](https://avatars.githubusercontent.com/u/16835345?v=4)](https://github.com/SpitsAdmin "SpitsAdmin (10 commits)")[![WoutSpits](https://avatars.githubusercontent.com/u/122993046?v=4)](https://github.com/WoutSpits "WoutSpits (7 commits)")

---

Tags

apilaravelhostfactwefactspitslaravel-wefact-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spits-online-laravel-wefact-api/health.svg)

```
[![Health](https://phpackages.com/badges/spits-online-laravel-wefact-api/health.svg)](https://phpackages.com/packages/spits-online-laravel-wefact-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M993](/packages/statamic-cms)[openai-php/laravel

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

3.7k9.5M89](/packages/openai-php-laravel)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M133](/packages/darkaonline-l5-swagger)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)

PHPackages © 2026

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