dougblackjr/laravel-aplos

Laravel client for the Aplos Open API

Maintainers

Package info

github.com/dougblackjr/laravel-aplos

pkg:composer/dougblackjr/laravel-aplos

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-02 09:34 UTC

This package is auto-updated.

Last update: 2026-05-02 09:39:23 UTC


README

A lightweight Laravel wrapper for the Aplos Open API.

Install

Add this repo to your composer.json (VCS or path), then:

composer require dougblackjr/laravel-aplos
php artisan vendor:publish --provider="Tns\Aplos\AplosServiceProvider" --tag=config

Configure

APLOS_CLIENT_ID=your-client-id
APLOS_PRIVATE_KEY_PATH=/full/path/to/private_key.pem    # or set APLOS_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n..."
APLOS_ACCOUNT_ID=optional-org-id

Quick Start

use Aplos;

// Contacts
$contacts = Aplos::contacts()->list([
    'f_name' => 'Smith',
    'f_type' => 'individual',
]);

$contact = Aplos::contacts()->getById(12345);

// Contributions (date filters: yyyy-MM-dd)
$contribs = Aplos::contributions()->list([
    'f_rangestart' => '2025-01-01',
    'f_rangeend' => '2025-12-31',
]);

// Funds / Accounts
$funds = Aplos::funds()->list();
$accounts = Aplos::accounts()->list();

// Accounting Transactions
$tx = Aplos::transactions()->list([
    'f_accountnumber' => '5000',
    'f_amount' => '>=100',
]);

// Payables / Receivables
$ap = Aplos::payables()->list();
$ar = Aplos::receivables()->list();