Download the PHP package jpry/ynab-sdk-php without Composer
On this page you can find all versions of the php package jpry/ynab-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ynab-sdk-php
JPry YNAB
Framework-agnostic PHP library for the YNAB API.
Repository: jpry/ynab-sdk-php
Highlights
- Namespace root:
JPry\\YNAB\\ - Typed resources for users, plans, plan settings, accounts, categories, category groups, payees, payee locations, months, money movements, scheduled transactions, and transactions
- Endpoint-by-name client methods (
user(),plans(),planSettings(),category(),monthCategory(),months(),moneyMovements(),scheduledTransactions(), etc.) - Structured YNAB errors (
error.id,error.name,error.detail) - Supports API key auth and OAuth token auth
- Uses PSR-7/PSR-18 HTTP contracts; any codebase can provide its own sender by implementing
JPry\\YNAB\\Http\\RequestSender
Install
If you want the built-in default sender:
Quick start
API key
Legacy budget-named APIs (budgets(), defaultBudget(), and JPry\\YNAB\\Model\\Budget) remain available for backward compatibility but are deprecated and emit E_USER_DEPRECATED warnings.
Most mutating methods (create/update/delete) return the raw data payload from the API response as array<string,mixed>.
Mutating methods also accept typed request models in JPry\\YNAB\\Model\\Mutation\\* (legacy array and string-id signatures remain supported).
Documentation
- Documentation Index
- Getting Started
- API Usage
- Mutations and Request Models
- OAuth Flow
- Migration Notes: Budgets to Plans
- OpenAPI Spec Snapshot
OAuth token
OAuth flow helper
Using your own HTTP client
Then pass it into factory methods:
Pagination
Collection methods automatically follow pagination metadata when present (next_page, next_page_url, or links.next).
OpenAPI spec
The repository includes a local snapshot of the YNAB OpenAPI specification at openapi/ynab-v1.openapi.yaml.
- Sync manually:
./scripts/sync-openapi-spec.sh - Automated sync:
.github/workflows/openapi-spec-sync.yml(weekly + manual dispatch)
Tests
All versions of ynab-sdk-php with dependencies
guzzlehttp/psr7 Version ^2.7
psr/http-client Version ^1.0
psr/http-message Version ^2.0