PHP code example of aiarmada / docs

1. Go to this page and download the library: Download aiarmada/docs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aiarmada / docs example snippets


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' => '[email protected]',
    ],
    'generate_pdf' => true,
]));
bash
composer vendor:publish --tag=docs-config
php artisan migrate
bash
php artisan vendor:publish --tag=docs-views