PHPackages                             aiarmada/docs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. aiarmada/docs

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

aiarmada/docs
=============

Doc generation package for Laravel with PDF support for invoices, receipts, shipping labels, and customizable templates

v0.1.34(2mo ago)01503MITPHPPHP ^8.4

Since May 21Pushed 1mo agoCompare

[ Source](https://github.com/AIArmada/docs)[ Packagist](https://packagist.org/packages/aiarmada/docs)[ Docs](https://github.com/aiarmada/commerce)[ RSS](/packages/aiarmada-docs/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (38)Versions (69)Used By (3)

Docs Package for Laravel
========================

[](#docs-package-for-laravel)

`aiarmada/docs` provides document creation, numbering, PDF generation, email delivery, tracking, and owner-aware document storage for Laravel applications.

What ships today
----------------

[](#what-ships-today)

- `AIArmada\Docs\Services\DocService` for document creation, updates, conversion, payment recording, and PDF generation
- `AIArmada\Docs\Services\DocEmailService` for send/send-reminder flows with tracking records
- Config-backed numbering through `AIArmada\Docs\Services\SequenceManager`
- Models for documents, templates, payments, versions, emails, approvals, workflows, and e-invoice submissions
- Optional owner scoping through `aiarmada/commerce-support`

Installation
------------

[](#installation)

```
composer require aiarmada/docs
php artisan vendor:publish --tag=docs-config
php artisan migrate
```

If you want to customize the bundled Blade templates, you can also publish the package views:

```
php artisan vendor:publish --tag=docs-views
```

Basic usage
-----------

[](#basic-usage)

```
use AIArmada\Docs\DataObjects\DocData;
use AIArmada\Docs\Services\DocService;

$doc = app(DocService::class)->create(DocData::from([
    'doc_type' => 'invoice',
    'items' => [
        [
            'name' => 'Consulting',
            'quantity' => 2,
            'price' => 150.00,
        ],
    ],
    'customer_data' => [
        'name' => 'Jane Doe',
        'email' => 'jane@example.com',
    ],
    'generate_pdf' => true,
]));
```

Core APIs
---------

[](#core-apis)

### Create a document

[](#create-a-document)

Use `DocService::create()` with `DocData::from([...])`.

### Update or transition status

[](#update-or-transition-status)

- `app(DocService::class)->updateStatus($doc, $statusClass, $notes)`
- `$doc->markAsSent()`
- `$doc->markAsPaid()`
- `$doc->cancel()`

### Generate or locate PDFs

[](#generate-or-locate-pdfs)

- `app(DocService::class)->generatePdf($doc, save: true)`
- `app(DocService::class)->downloadPdf($doc)`

### Record payments

[](#record-payments)

Use `app(DocService::class)->recordPayment($doc, $paymentData)`.

### Send emails

[](#send-emails)

- `app(DocEmailService::class)->send($doc, $recipientEmail, $recipientName)`
- `app(DocEmailService::class)->sendReminder($doc, $recipientEmail)`

Supported document types
------------------------

[](#supported-document-types)

The default config ships these types:

- `invoice`
- `quotation`
- `receipt`
- `credit_note`
- `delivery_note`
- `proforma_invoice`

Configuration highlights
------------------------

[](#configuration-highlights)

Important keys in `config/docs.php`:

- `database`
- `defaults`
- `payment_methods`
- `owner`
- `email`
- `einvoice`
- `types`
- `numbering`
- `storage`
- `pdf`
- `company`

Notes
-----

[](#notes)

- Owner scoping is controlled by `docs.owner.*`.
- Template lookup is owner-aware when owner mode is enabled.
- Email tracking routes are registered under `/docs/track/*`.
- Per-type storage overrides live under `docs.types.{type}.storage`.

Documentation
-------------

[](#documentation)

See the package docs in `packages/docs/docs/`:

- `01-overview.md`
- `02-installation.md`
- `03-configuration.md`
- `04-usage.md`
- `05-pdf-generation.md`
- `06-status-management.md`
- `07-templates.md`
- `08-tailwind-usage.md`
- `99-troubleshooting.md`

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

68

Last Release

81d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1634949?v=4)[Saiffil Fariz](/maintainers/sairiz)[@sairiz](https://github.com/sairiz)

### Embed Badge

![Health badge](/badges/aiarmada-docs/health.svg)

```
[![Health](https://phpackages.com/badges/aiarmada-docs/health.svg)](https://phpackages.com/packages/aiarmada-docs)
```

###  Alternatives

[verumconsilium/laravel-browsershot

Browsershot Laravel wrapper to generate PDF files and Screenshots using Headless Chrome

112481.7k1](/packages/verumconsilium-laravel-browsershot)[42coders/document-templates

Document template management package.

19940.4k](/packages/42coders-document-templates)[tapp/filament-lms

204.4k](/packages/tapp-filament-lms)[webcrafts-studio/lens-for-laravel

A local-first WCAG accessibility auditor for Laravel with axe-core, source mapping, CI workflows, and optional AI fixes.

464.2k](/packages/webcrafts-studio-lens-for-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[padocia/laravel-nova-pdf

Generate Pdf from nova resources

2329.0k](/packages/padocia-laravel-nova-pdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
