dougblackjr / laravel-aplos
Laravel client for the Aplos Open API
dev-main
2026-04-02 09:34 UTC
Requires
- php: ^8.1
- ext-openssl: *
- guzzlehttp/guzzle: ^7.8|^8.0
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();