PHP code example of quatrebarbes / larchiclass
1. Go to this page and download the library: Download quatrebarbes/larchiclass 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/ */
quatrebarbes / larchiclass example snippets bash
# Default output: larchi-caller.puml
php artisan larchi:class "App\Domain\Billing::readInvoice"
# Custom output file
php artisan larchi:class "App\Domain\Billing::readInvoice" --output="docs/billing-read-invoice.puml"
bash
# Default namespace (App), output: larchi-class.puml
php artisan larchi:class
# Custom namespace
php artisan larchi:class --namespace="App\Domain\Billing"
# Custom output file
php artisan larchi:class --output="docs/billing.puml"
# Include parents and dependencies outside the namespace
php artisan larchi:class --namespace="App\Http\Controllers" --with-related
# Include everything, vendor classes bash
# Default namespace (App\Models), output: larchi-model.puml
php artisan larchi:model
# Specific subdomain
php artisan larchi:model --namespace="App\Models\Billing" --output="docs/billing-models.puml"
# Include Eloquent parent classes
php artisan larchi:model --with-related --with-vendors