Download the PHP package fleetbase/ledger-api without Composer

On this page you can find all versions of the php package fleetbase/ledger-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ledger-api

Fleetbase Ledger

Fleetbase Ledger

Accounting, invoicing, wallets, payments, and financial reporting for Fleetbase.

License: AGPL-3.0-or-later PHP CI Ember CI Packagist version npm version Ledger documentation

Fleetbase Ledger dashboard

Overview

Ledger is the finance and billing extension for Fleetbase. It adds a complete financial management layer to the Fleetbase console, including double-entry bookkeeping, customer invoicing, invoice templates, digital wallets, payment gateway processing, immutable transaction history, and standard financial reports.

Ledger ships as both a Laravel package and an Ember engine. The backend package provides the accounting models, services, routes, gateway drivers, events, observers, migrations, and console commands. The frontend engine provides the Ledger console experience for billing, payments, accounting, reports, and settings.

Ledger is included with standard Fleetbase installations. See the Fleetbase Ledger documentation for the product guide, concepts, and setup walkthroughs.

Contents

Features

Accounting

Billing and Invoicing

Wallets and Transactions

Payment Gateways

Reports and Dashboard

Fleetbase Integrations

Architecture

Ledger is split into two distributable packages:

Package Runtime Description
fleetbase/ledger-api Laravel / PHP Backend models, routes, services, migrations, gateway drivers, observers, events, resources, reports, and console commands.
@fleetbase/ledger-engine Ember Fleetbase console engine for the Ledger dashboard, billing, payments, accounting, reports, and settings screens.

Backend routes are mounted under the configured Ledger API prefix, which defaults to ledger.

Route group Authentication Purpose
POST /ledger/webhooks/{driver} Public, driver verified Payment gateway webhook callbacks.
/ledger/public/invoices/{public_id} Public Customer invoice view, gateway list, and payment flow.
/ledger/v1/wallet/* API key Customer and driver wallet API endpoints.
/ledger/int/v1/* Fleetbase session Console APIs for accounts, invoices, journals, wallets, transactions, gateways, settings, and reports.

The Ember engine mounts at the Fleetbase extension route ledger and exposes console sections for billing, payments, accounting, reports, and settings.

Requirements

Installation

Ledger comes pre-installed with Fleetbase. In a standard Fleetbase instance, open the console sidebar and navigate to Ledger to begin. Default accounts and wallets are provisioned automatically for new companies and users.

For package-level installation:

If you are adding Ledger to an existing Fleetbase installation, run migrations through your normal Fleetbase deployment flow, then provision defaults for existing records:

Development

Fleetbase workspace linking

When working on Ledger inside a full Fleetbase checkout, use Fleetbase's package linker from the repository root instead of hand-editing console/package.json, api/composer.json, or console/pnpm-workspace.yaml.

Install the linker once from the Fleetbase repository root:

Enable Ledger as a local development package:

Use --install to let the linker run the required package-manager commands immediately:

Check link state with:

See the Fleetbase development setup guide for Docker mounts, local Ember dev server setup, package-linker details, and unlink/reset commands. Fleetbase runs Laravel Octane, so reload the API worker after PHP changes:

Package-level development

Install dependencies:

Run the Ember engine locally:

Frontend checks:

Backend checks:

Ledger Artisan commands:

ledger:provision is idempotent and can target all companies, one company, accounts only, or wallets only. ledger:backfill-direction fills missing transaction directions on older transaction rows. ledger:update-overdue-invoices marks sent or viewed invoices as overdue when their due date has passed.

API and Extension Points

Ledger exposes backend services for accounting, wallets, invoices, and payments:

Custom payment gateways can extend AbstractGatewayDriver and implement the GatewayDriverInterface contract. Gateway drivers provide a code, name, capability list, configuration schema, purchase/refund behavior, and optional webhook or tokenization support.

Ledger also registers invoice template context variables with Fleetbase's template rendering system so invoice templates can reference invoice, transaction, account, and wallet data during rendering.

Documentation

Contributing

Contributions are welcome. Please read the contributing guide before opening a pull request.

For local changes, keep frontend and backend checks focused on the area you touched and include relevant test output in your pull request.

Security

Please do not report security issues in public GitHub issues. Contact Fleetbase at [email protected] with details so the team can coordinate a responsible fix.

License

Fleetbase Ledger is open-source software licensed under the AGPL-3.0-or-later.


All versions of ledger-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
fleetbase/core-api Version *
fleetbase/fleetops-api Version *
guzzlehttp/guzzle Version ^7.0
php-http/guzzle7-adapter Version ^1.0
psr/http-factory-implementation Version *
stripe/stripe-php Version ^17.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fleetbase/ledger-api contains the following files

Loading the files please wait ...