aleahy/laravel-saasu-connect

Laravel wrapper for SaasuConnect
1,728
Install
composer require aleahy/laravel-saasu-connect
Latest Version:1.1.1
PHP:^8.2
Laravel:10 · 11 · 12
Older releases:8 · 9
License:MIT
Last Updated:Feb 22, 2026
Links: GitHub  ·  Packagist
Maintainer: aleahy

Laravel Saasu Connect

A Laravel wrapper for SaasuConnect

Overview

This package can be imported into laravel to be able to make requests on the Saasu API.

Installation

composer require aleahy/laravel-saasu-connect

Then publish the config file to be able to access your saasu username, password and File ID.

php artisan vendor:publish --provider="Aleahy\LaravelSaasuConnect\ServiceProvider" --tag=config

Usage

Use the SaasuAPI facade to be able to make the calls on the Saasu API.

use Aleahy\LaravelSaasuConnect\Facade\SaasuAPI;
use Aleahy\SaasuConnect\Entities\Invoice as SaasuInvoice;

SaasuAPI::findEntity(SaasuInvoice::class, [
  'AmountOwed' => 490.0
]);

Available Methods

The following methods currently exist:

findEntity - Finds the provided entity with the search attributes. Returns a collection of entities.

insertEntity - Makes a post request for the given entity with the provided attributes.

getEntity - Returns the specific entity with the given id.

getAllEntities - Returns all the entities in a single array.

Available Entities

  • Company
  • Contact
  • Invoice

HasSaasuEntity Trait

Models can also be associated with a saasu id. This trait adds a SaasuEntity hasOne relationship which holds the saasu ID.

Adding the trait HasSaasuEntity to your models assigns them a model to manually track the saasu id.

Installation

Add the trait HasSaasuEntity to your model.

You will also need to publish the migration to store the saasu id.

php artisan vendor:publish --provider="Aleahy\LaravelSaasuConnect\ServiceProvider" --tag=migrations

Available methods

setSaasuID - set the value of the saasu id for the model.

getSaasuID - returns the value of the saasu id for the model.

hasSaasuID - returns true or false, depending on if the saasuID value has been set.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
1.1.1 ^8.2 ^10.0|^11.0|^12.0 MIT
1.1 ^8.2 ^10.0|^11.0|^12.0 MIT
1.0 ^8.2 ^10.0|11.0 MIT
0.1 ^7.4|^8.0 ^8.0|^9.0 MIT