Download the PHP package aleahy/laravel-saasu-connect without Composer
On this page you can find all versions of the php package aleahy/laravel-saasu-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aleahy/laravel-saasu-connect
More information about aleahy/laravel-saasu-connect
Files in aleahy/laravel-saasu-connect
Package laravel-saasu-connect
Short Description Laravel wrapper for SaasuConnect
License MIT
Informations about the package laravel-saasu-connect
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
Then publish the config file to be able to access your saasu username, password and File ID.
Usage
Use the SaasuAPI facade to be able to make the calls on the Saasu API.
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 to your models assigns them a model to manually track the saasu id.
Installation
Add the trait to your model.
You will also need to publish the migration to store the saasu id.
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.
All versions of laravel-saasu-connect with dependencies
aleahy/saasu-connect Version 0.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
phpunit/phpunit Version ^10.0|^11.0