From 2828ebcec9df7e21c6f38dd28c550fc931b5dab5 Mon Sep 17 00:00:00 2001 From: Flavio Barachino Date: Mon, 3 Apr 2023 12:27:07 +0200 Subject: [PATCH] BUB-7 Automobili: Esportazione dei dettagli in PDF delle auto --- app/Http/Controllers/AutoController.php | 7 +- app/Models/Operazione.php | 43 +- bootstrap/app.php | 4 +- composer.json | 3 +- composer.lock | 1741 ++++++++++++++++++- config/view-export.php | 175 ++ resources/views/auto/detail.blade.php | 5 + resources/views/auto/detailpdf.blade.php | 249 +++ resources/views/letture/enel/list.blade.php | 2 +- routes/admin.php | 1 + 10 files changed, 2131 insertions(+), 99 deletions(-) create mode 100644 config/view-export.php create mode 100644 resources/views/auto/detailpdf.blade.php diff --git a/app/Http/Controllers/AutoController.php b/app/Http/Controllers/AutoController.php index 70f8c45..4b1828a 100644 --- a/app/Http/Controllers/AutoController.php +++ b/app/Http/Controllers/AutoController.php @@ -116,6 +116,11 @@ class AutoController extends Controller public function getOperazioni(Request $request) { $operazioni=Operazione::getOperazioni($request['id']); - dd($operazioni); + // dd($operazioni); + } + + public function exportPdfOperazioni(Request $id) + { + $pdf=Operazione::exportPdfOperazioni($id['id']); } } diff --git a/app/Models/Operazione.php b/app/Models/Operazione.php index 2967071..9cea372 100644 --- a/app/Models/Operazione.php +++ b/app/Models/Operazione.php @@ -5,6 +5,9 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; +//use Barryvdh\DomPDF\Facade\Pdf; +use Sfneal\ViewExport\Pdf\PdfExportService; + class Operazione extends Model { @@ -72,7 +75,12 @@ class Operazione extends Model $manutenzione[$dato->id]=Manutenzione::getElementsbyOperazione($dato->id); $revisione[$dato->id]=Revisione::getElementsbyOperazione($dato->id); $rifornimento[$dato->id]=Rifornimento::getElementsbyOperazione($dato->id); - if(isset($dato->km)){$km=$dato->km;}else{$km=0;} + if(isset($dato->km)) + { + $km=$dato->km; + }else{ + $km=0; + } } // Debug /* dd($rifornimento);*/ @@ -87,4 +95,37 @@ class Operazione extends Model 'rifornimento'=>$rifornimento, ]); } + + public static function exportPdfOperazioni($autoId) + { + $automobile=Auto::getAutoById($autoId); + $data=DB::table('operaziones') + ->where('fk_auto_id','=',$autoId) + ->orderBy('km') + ->get(); + foreach ($data as $dato) + { + $accessori[$dato->id]=Accessori::getElementsbyOperazione($dato->id); + $manutenzione[$dato->id]=Manutenzione::getElementsbyOperazione($dato->id); + $revisione[$dato->id]=Revisione::getElementsbyOperazione($dato->id); + $rifornimento[$dato->id]=Rifornimento::getElementsbyOperazione($dato->id); + if(isset($dato->km)) + { + $km=$dato->km; + }else{ + $km=0; + } + } + $view= view('auto.detailpdf',[ + 'dettagli'=>$automobile, + 'km'=>$km, + + 'operazione'=>$data, + 'accessori'=>$accessori, + 'manutenzione'=>$manutenzione, + 'revisione'=>$revisione, + 'rifornimento'=>$rifornimento, + ]); + return $pdf=PdfExportService::fromView($view)->handle()->download(); + } } diff --git a/bootstrap/app.php b/bootstrap/app.php index 16115ba..7405d28 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -41,8 +41,8 @@ $app->singleton( App\Exceptions\Handler::class ); -// $app->register(\Barryvdh\DomPDF\ServiceProvider::class); -// $app->configure('dompdf'); + //$app->register(\Barryvdh\DomPDF\ServiceProvider::class); + //$app->configure('dompdf'); /* |-------------------------------------------------------------------------- | Return The Application diff --git a/composer.json b/composer.json index 9cab997..2424a2d 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "license" : "MIT", "require" : { "php": "^7.3|^8.0", - "barryvdh/laravel-dompdf": "^1.0", + "barryvdh/laravel-dompdf": "^2.0", "directorytree/ldaprecord": "^2.9", "directorytree/ldaprecord-laravel": "^2.5", "fruitcake/laravel-cors": "^2.0", @@ -22,6 +22,7 @@ "laraveldaily/laravel-charts": "^0.1.29", "rap2hpoutre/fast-excel": "^3.2", "secondtruth/startmin": "^1.1", + "sfneal/view-export": "^2.10", "snapappointments/bootstrap-select": "^1.13", "webklex/laravel-imap": "^2.4" }, diff --git a/composer.lock b/composer.lock index 353f73a..dae7c8b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cd017abd2d4678acce004f1da44ac250", + "content-hash": "a511b14e015a62f4c400afa3a987358d", "packages": [ { "name": "asm89/stack-cors", @@ -63,40 +63,189 @@ "time": "2022-01-18T09:12:03+00:00" }, { - "name": "barryvdh/laravel-dompdf", - "version": "v1.0.2", + "name": "aws/aws-crt-php", + "version": "v1.2.1", "source": { "type": "git", - "url": "https://github.com/barryvdh/laravel-dompdf.git", - "reference": "de83130d029289e1b59f28b41c314ce1d157b4a0" + "url": "https://github.com/awslabs/aws-crt-php.git", + "reference": "1926277fc71d253dfa820271ac5987bdb193ccf5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/de83130d029289e1b59f28b41c314ce1d157b4a0", - "reference": "de83130d029289e1b59f28b41c314ce1d157b4a0", + "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/1926277fc71d253dfa820271ac5987bdb193ccf5", + "reference": "1926277fc71d253dfa820271ac5987bdb193ccf5", "shasum": "" }, "require": { - "dompdf/dompdf": "^1.2.1", - "illuminate/support": "^6|^7|^8|^9", + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35||^5.6.3||^9.5", + "yoast/phpunit-polyfills": "^1.0" + }, + "suggest": { + "ext-awscrt": "Make sure you install awscrt native extension to use any of the functionality." + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "AWS SDK Common Runtime Team", + "email": "aws-sdk-common-runtime@amazon.com" + } + ], + "description": "AWS Common Runtime for PHP", + "homepage": "https://github.com/awslabs/aws-crt-php", + "keywords": [ + "amazon", + "aws", + "crt", + "sdk" + ], + "support": { + "issues": "https://github.com/awslabs/aws-crt-php/issues", + "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.1" + }, + "time": "2023-03-24T20:22:19+00:00" + }, + { + "name": "aws/aws-sdk-php", + "version": "3.263.1", + "source": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-php.git", + "reference": "1f1ca8866e54aabdcde2aba177196ec2f12ee8a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/1f1ca8866e54aabdcde2aba177196ec2f12ee8a2", + "reference": "1f1ca8866e54aabdcde2aba177196ec2f12ee8a2", + "shasum": "" + }, + "require": { + "aws/aws-crt-php": "^1.0.4", + "ext-json": "*", + "ext-pcre": "*", + "ext-simplexml": "*", + "guzzlehttp/guzzle": "^6.5.8 || ^7.4.5", + "guzzlehttp/promises": "^1.4.0", + "guzzlehttp/psr7": "^1.8.5 || ^2.3", + "mtdowling/jmespath.php": "^2.6", + "php": ">=5.5" + }, + "require-dev": { + "andrewsville/php-token-reflection": "^1.4", + "aws/aws-php-sns-message-validator": "~1.0", + "behat/behat": "~3.0", + "composer/composer": "^1.10.22", + "dms/phpunit-arraysubset-asserts": "^0.4.0", + "doctrine/cache": "~1.4", + "ext-dom": "*", + "ext-openssl": "*", + "ext-pcntl": "*", + "ext-sockets": "*", + "nette/neon": "^2.3", + "paragonie/random_compat": ">= 2", + "phpunit/phpunit": "^4.8.35 || ^5.6.3 || ^9.5", + "psr/cache": "^1.0", + "psr/simple-cache": "^1.0", + "sebastian/comparator": "^1.2.3 || ^4.0", + "yoast/phpunit-polyfills": "^1.0" + }, + "suggest": { + "aws/aws-php-sns-message-validator": "To validate incoming SNS notifications", + "doctrine/cache": "To use the DoctrineCacheAdapter", + "ext-curl": "To send requests using cURL", + "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages", + "ext-sockets": "To use client-side monitoring" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Aws\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Amazon Web Services", + "homepage": "http://aws.amazon.com" + } + ], + "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", + "homepage": "http://aws.amazon.com/sdkforphp", + "keywords": [ + "amazon", + "aws", + "cloud", + "dynamodb", + "ec2", + "glacier", + "s3", + "sdk" + ], + "support": { + "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", + "issues": "https://github.com/aws/aws-sdk-php/issues", + "source": "https://github.com/aws/aws-sdk-php/tree/3.263.1" + }, + "time": "2023-03-31T18:21:25+00:00" + }, + { + "name": "barryvdh/laravel-dompdf", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/barryvdh/laravel-dompdf.git", + "reference": "9843d2be423670fb434f4c978b3c0f4dd92c87a6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/9843d2be423670fb434f4c978b3c0f4dd92c87a6", + "reference": "9843d2be423670fb434f4c978b3c0f4dd92c87a6", + "shasum": "" + }, + "require": { + "dompdf/dompdf": "^2.0.1", + "illuminate/support": "^6|^7|^8|^9|^10", "php": "^7.2 || ^8.0" }, "require-dev": { "nunomaduro/larastan": "^1|^2", - "orchestra/testbench": "^4|^5|^6|^7", + "orchestra/testbench": "^4|^5|^6|^7|^8", "phpro/grumphp": "^1", "squizlabs/php_codesniffer": "^3.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" }, "laravel": { "providers": [ "Barryvdh\\DomPDF\\ServiceProvider" ], "aliases": { + "Pdf": "Barryvdh\\DomPDF\\Facade\\Pdf", "PDF": "Barryvdh\\DomPDF\\Facade\\Pdf" } } @@ -124,7 +273,7 @@ ], "support": { "issues": "https://github.com/barryvdh/laravel-dompdf/issues", - "source": "https://github.com/barryvdh/laravel-dompdf/tree/v1.0.2" + "source": "https://github.com/barryvdh/laravel-dompdf/tree/v2.0.1" }, "funding": [ { @@ -136,7 +285,7 @@ "type": "github" } ], - "time": "2022-05-19T15:08:38+00:00" + "time": "2023-01-12T15:12:49+00:00" }, { "name": "box/spout", @@ -269,6 +418,87 @@ ], "time": "2022-08-10T22:54:19+00:00" }, + { + "name": "composer/semver", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-04-01T19:23:25+00:00" + }, { "name": "dflydev/dot-access-data", "version": "v3.0.2", @@ -653,23 +883,24 @@ }, { "name": "dompdf/dompdf", - "version": "v1.2.2", + "version": "v2.0.3", "source": { "type": "git", "url": "https://github.com/dompdf/dompdf.git", - "reference": "5031045d9640b38cfc14aac9667470df09c9e090" + "reference": "e8d2d5e37e8b0b30f0732a011295ab80680d7e85" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dompdf/dompdf/zipball/5031045d9640b38cfc14aac9667470df09c9e090", - "reference": "5031045d9640b38cfc14aac9667470df09c9e090", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/e8d2d5e37e8b0b30f0732a011295ab80680d7e85", + "reference": "e8d2d5e37e8b0b30f0732a011295ab80680d7e85", "shasum": "" }, "require": { "ext-dom": "*", "ext-mbstring": "*", - "phenx/php-font-lib": "^0.5.4", - "phenx/php-svg-lib": "^0.3.3 || ^0.4.0", + "masterminds/html5": "^2.0", + "phenx/php-font-lib": ">=0.5.4 <1.0.0", + "phenx/php-svg-lib": ">=0.3.3 <1.0.0", "php": "^7.1 || ^8.0" }, "require-dev": { @@ -700,25 +931,17 @@ ], "authors": [ { - "name": "Fabien Ménager", - "email": "fabien.menager@gmail.com" - }, - { - "name": "Brian Sweeney", - "email": "eclecticgeek@gmail.com" - }, - { - "name": "Gabriel Bull", - "email": "me@gabrielbull.com" + "name": "The Dompdf Community", + "homepage": "https://github.com/dompdf/dompdf/blob/master/AUTHORS.md" } ], "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", "homepage": "https://github.com/dompdf/dompdf", "support": { "issues": "https://github.com/dompdf/dompdf/issues", - "source": "https://github.com/dompdf/dompdf/tree/v1.2.2" + "source": "https://github.com/dompdf/dompdf/tree/v2.0.3" }, - "time": "2022-04-27T13:50:54+00:00" + "time": "2023-02-07T12:51:48+00:00" }, { "name": "dragonmantank/cron-expression", @@ -849,6 +1072,67 @@ ], "time": "2020-12-29T14:50:06+00:00" }, + { + "name": "ezyang/htmlpurifier", + "version": "v4.16.0", + "source": { + "type": "git", + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/523407fb06eb9e5f3d59889b3978d5bfe94299c8", + "reference": "523407fb06eb9e5f3d59889b3978d5bfe94299c8", + "shasum": "" + }, + "require": { + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0" + }, + "require-dev": { + "cerdic/css-tidy": "^1.7 || ^2.0", + "simpletest/simpletest": "dev-master" + }, + "suggest": { + "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.", + "ext-bcmath": "Used for unit conversion and imagecrash protection", + "ext-iconv": "Converts text to and from non-UTF-8 encodings", + "ext-tidy": "Used for pretty-printing HTML" + }, + "type": "library", + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.16.0" + }, + "time": "2022-09-18T07:06:19+00:00" + }, { "name": "fruitcake/laravel-cors", "version": "v2.2.0", @@ -2141,6 +2425,71 @@ ], "time": "2022-10-04T09:16:37+00:00" }, + { + "name": "league/flysystem-aws-s3-v3", + "version": "1.0.30", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git", + "reference": "af286f291ebab6877bac0c359c6c2cb017eb061d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/af286f291ebab6877bac0c359c6c2cb017eb061d", + "reference": "af286f291ebab6877bac0c359c6c2cb017eb061d", + "shasum": "" + }, + "require": { + "aws/aws-sdk-php": "^3.20.0", + "league/flysystem": "^1.0.40", + "php": ">=5.5.0" + }, + "require-dev": { + "henrikbjorn/phpspec-code-coverage": "~1.0.1", + "phpspec/phpspec": "^2.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\AwsS3v3\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Flysystem adapter for the AWS S3 SDK v3.x", + "support": { + "issues": "https://github.com/thephpleague/flysystem-aws-s3-v3/issues", + "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/1.0.30" + }, + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-07-02T13:51:38+00:00" + }, { "name": "league/mime-type-detection", "version": "1.11.0", @@ -2197,6 +2546,340 @@ ], "time": "2022-04-17T13:12:02+00:00" }, + { + "name": "maatwebsite/excel", + "version": "3.1.48", + "source": { + "type": "git", + "url": "https://github.com/SpartnerNL/Laravel-Excel.git", + "reference": "6d0fe2a1d195960c7af7bf0de760582da02a34b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/6d0fe2a1d195960c7af7bf0de760582da02a34b9", + "reference": "6d0fe2a1d195960c7af7bf0de760582da02a34b9", + "shasum": "" + }, + "require": { + "composer/semver": "^3.3", + "ext-json": "*", + "illuminate/support": "5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.0|^8.0", + "phpoffice/phpspreadsheet": "^1.18", + "psr/simple-cache": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "orchestra/testbench": "^6.0|^7.0|^8.0", + "predis/predis": "^1.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Maatwebsite\\Excel\\ExcelServiceProvider" + ], + "aliases": { + "Excel": "Maatwebsite\\Excel\\Facades\\Excel" + } + } + }, + "autoload": { + "psr-4": { + "Maatwebsite\\Excel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Patrick Brouwers", + "email": "patrick@spartner.nl" + } + ], + "description": "Supercharged Excel exports and imports in Laravel", + "keywords": [ + "PHPExcel", + "batch", + "csv", + "excel", + "export", + "import", + "laravel", + "php", + "phpspreadsheet" + ], + "support": { + "issues": "https://github.com/SpartnerNL/Laravel-Excel/issues", + "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.48" + }, + "funding": [ + { + "url": "https://laravel-excel.com/commercial-support", + "type": "custom" + }, + { + "url": "https://github.com/patrickbrouwers", + "type": "github" + } + ], + "time": "2023-02-22T21:01:38+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "3fa72e4c71a43f9e9118752a5c90e476a8dc9eb3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/3fa72e4c71a43f9e9118752a5c90e476a8dc9eb3", + "reference": "3fa72e4c71a43f9e9118752a5c90e476a8dc9eb3", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "myclabs/php-enum": "^1.5", + "php": "^8.0", + "psr/http-message": "^1.0" + }, + "require-dev": { + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.9", + "guzzlehttp/guzzle": "^6.5.3 || ^7.2.0", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.4", + "phpunit/phpunit": "^8.5.8 || ^9.4.2", + "vimeo/psalm": "^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + }, + { + "url": "https://opencollective.com/zipstream", + "type": "open_collective" + } + ], + "time": "2022-12-08T12:29:14+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.7.6", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "897eb517a343a2281f11bc5556d6548db7d93947" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/897eb517a343a2281f11bc5556d6548db7d93947", + "reference": "897eb517a343a2281f11bc5556d6548db7d93947", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-libxml": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.7.6" + }, + "time": "2022-08-18T16:18:26+00:00" + }, { "name": "monolog/monolog", "version": "2.9.1", @@ -2299,6 +2982,130 @@ ], "time": "2023-02-06T13:44:46+00:00" }, + { + "name": "mtdowling/jmespath.php", + "version": "2.6.1", + "source": { + "type": "git", + "url": "https://github.com/jmespath/jmespath.php.git", + "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/9b87907a81b87bc76d19a7fb2d61e61486ee9edb", + "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb", + "shasum": "" + }, + "require": { + "php": "^5.4 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.17" + }, + "require-dev": { + "composer/xdebug-handler": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^7.5.15" + }, + "bin": [ + "bin/jp.php" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "files": [ + "src/JmesPath.php" + ], + "psr-4": { + "JmesPath\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Declaratively specify how to extract elements from a JSON document", + "keywords": [ + "json", + "jsonpath" + ], + "support": { + "issues": "https://github.com/jmespath/jmespath.php/issues", + "source": "https://github.com/jmespath/jmespath.php/tree/2.6.1" + }, + "time": "2021-06-14T00:11:39+00:00" + }, + { + "name": "myclabs/php-enum", + "version": "1.8.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/php-enum.git", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "1.*", + "vimeo/psalm": "^4.6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + }, + "classmap": [ + "stubs/Stringable.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/1.8.4" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", + "type": "tidelift" + } + ], + "time": "2022-08-04T09:53:51+00:00" + }, { "name": "nesbot/carbon", "version": "2.66.0", @@ -2717,21 +3524,21 @@ }, { "name": "phenx/php-svg-lib", - "version": "0.4.1", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/dompdf/php-svg-lib.git", - "reference": "4498b5df7b08e8469f0f8279651ea5de9626ed02" + "reference": "76876c6cf3080bcb6f249d7d59705108166a6685" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/4498b5df7b08e8469f0f8279651ea5de9626ed02", - "reference": "4498b5df7b08e8469f0f8279651ea5de9626ed02", + "url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/76876c6cf3080bcb6f249d7d59705108166a6685", + "reference": "76876c6cf3080bcb6f249d7d59705108166a6685", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": "^7.1 || ^7.2 || ^7.3 || ^7.4 || ^8.0", + "php": "^7.1 || ^8.0", "sabberworm/php-css-parser": "^8.4" }, "require-dev": { @@ -2757,9 +3564,114 @@ "homepage": "https://github.com/PhenX/php-svg-lib", "support": { "issues": "https://github.com/dompdf/php-svg-lib/issues", - "source": "https://github.com/dompdf/php-svg-lib/tree/0.4.1" + "source": "https://github.com/dompdf/php-svg-lib/tree/0.5.0" }, - "time": "2022-03-07T12:52:04+00:00" + "time": "2022-09-06T12:16:56+00:00" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "1.28.0", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "6e81cf39bbd93ebc3a4e8150444c41e8aa9b769a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/6e81cf39bbd93ebc3a4e8150444c41e8aa9b769a", + "reference": "6e81cf39bbd93ebc3a4e8150444c41e8aa9b769a", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "ezyang/htmlpurifier": "^4.15", + "maennchen/zipstream-php": "^2.1", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": "^7.4 || ^8.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^1.0 || ^2.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.2.4", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^8.5 || ^9.0", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.28.0" + }, + "time": "2023-02-25T12:24:49+00:00" }, { "name": "phpoption/phpoption", @@ -3654,6 +4566,580 @@ }, "time": "2018-12-11T18:14:53+00:00" }, + { + "name": "sfneal/actions", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sfneal/actions.git", + "reference": "033b1616e053d33b335d1d77eb9d5d54551abf4b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/actions/zipball/033b1616e053d33b335d1d77eb9d5d54551abf4b", + "reference": "033b1616e053d33b335d1d77eb9d5d54551abf4b", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": ">=5.7.27", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\Actions\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Abstraction layers for utilizing the 'Action' pattern in PHP applications", + "homepage": "https://github.com/sfneal/actions", + "keywords": [ + "actions", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/actions/issues", + "source": "https://github.com/sfneal/actions/tree/2.0.0" + }, + "time": "2021-03-30T21:14:13+00:00" + }, + { + "name": "sfneal/array-helpers", + "version": "3.3.1", + "source": { + "type": "git", + "url": "https://github.com/sfneal/array-helpers.git", + "reference": "8af9a134b7742a70504ec55592813db97d60a818" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/array-helpers/zipball/8af9a134b7742a70504ec55592813db97d60a818", + "reference": "8af9a134b7742a70504ec55592813db97d60a818", + "shasum": "" + }, + "require": { + "ext-gmp": "*", + "php": ">=7.1", + "sfneal/actions": "^2.0" + }, + "require-dev": { + "ext-json": "*", + "orchestra/testbench": ">=3.8", + "phpunit/phpunit": ">=5.7.0", + "scrutinizer/ocular": "^1.8" + }, + "suggest": { + "illuminate/collections": "Improves array differential performance" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\Helpers\\Arrays\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Array helpers for PHP applications", + "homepage": "https://github.com/sfneal/array-helpers", + "keywords": [ + "array-helpers", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/array-helpers/issues", + "source": "https://github.com/sfneal/array-helpers/tree/3.3.1" + }, + "time": "2021-08-16T16:20:30+00:00" + }, + { + "name": "sfneal/aws-s3-helpers", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sfneal/aws-s3-helpers.git", + "reference": "dde609e832d12ea6c07dc3efcdfbda057b4ce498" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/aws-s3-helpers/zipball/dde609e832d12ea6c07dc3efcdfbda057b4ce498", + "reference": "dde609e832d12ea6c07dc3efcdfbda057b4ce498", + "shasum": "" + }, + "require": { + "aws/aws-sdk-php": "^3.185", + "laravel/framework": ">=8.40", + "league/flysystem-aws-s3-v3": ">=1.0.29", + "php": ">=7.4" + }, + "require-dev": { + "orchestra/testbench": ">=6.7", + "phpunit/phpunit": ">=7.5.20", + "scrutinizer/ocular": "^1.8", + "sfneal/mock-models": ">=0.7" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sfneal\\Helpers\\Aws\\S3\\Providers\\S3HelpersServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Sfneal\\Helpers\\Aws\\S3\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Abstraction layers for interacting with AWS S3 storage", + "homepage": "https://github.com/sfneal/aws-s3-helpers", + "keywords": [ + "aws-s3-helpers", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/aws-s3-helpers/issues", + "source": "https://github.com/sfneal/aws-s3-helpers/tree/1.0.1" + }, + "time": "2021-07-09T16:01:16+00:00" + }, + { + "name": "sfneal/caching", + "version": "2.1.2", + "source": { + "type": "git", + "url": "https://github.com/sfneal/caching.git", + "reference": "77bb3b94f282361541a57dd883ce1757e39e90a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/caching/zipball/77bb3b94f282361541a57dd883ce1757e39e90a3", + "reference": "77bb3b94f282361541a57dd883ce1757e39e90a3", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sfneal/redis-helpers": "^1.4|^2.0" + }, + "require-dev": { + "josiasmontag/laravel-redis-mock": ">=1.2.6", + "orchestra/testbench": ">=3.8.0", + "phpunit/phpunit": ">=6.5.14", + "scrutinizer/ocular": "^1.8", + "sfneal/currency": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\Caching\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Traits & interfaces for utilizing cache mechanisms to store frequently retrieved data.", + "homepage": "https://github.com/sfneal/caching", + "keywords": [ + "caching", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/caching/issues", + "source": "https://github.com/sfneal/caching/tree/2.1.2" + }, + "time": "2021-09-03T16:42:56+00:00" + }, + { + "name": "sfneal/laravel-helpers", + "version": "2.4.2", + "source": { + "type": "git", + "url": "https://github.com/sfneal/laravel-helpers.git", + "reference": "f600dd81a63e023c59e15f864cc6d4b0429e8f6b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/laravel-helpers/zipball/f600dd81a63e023c59e15f864cc6d4b0429e8f6b", + "reference": "f600dd81a63e023c59e15f864cc6d4b0429e8f6b", + "shasum": "" + }, + "require": { + "laravel/framework": ">=5.8", + "php": "^7.1|^8.0", + "sfneal/actions": "^2.0", + "sfneal/string-helpers": ">=1.1" + }, + "require-dev": { + "orchestra/testbench": "^3.8|^6.24.1|^7.0", + "phpunit/phpunit": "^7.5|^8.0 <8.5.12|^9.3", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sfneal\\Helpers\\Laravel\\Providers\\AppInfoServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Sfneal\\Helpers\\Laravel\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Helper functions for Laravel applications", + "homepage": "https://github.com/sfneal/laravel-helpers", + "keywords": [ + "laravel-helpers", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/laravel-helpers/issues", + "source": "https://github.com/sfneal/laravel-helpers/tree/2.4.2" + }, + "time": "2022-03-03T21:51:58+00:00" + }, + { + "name": "sfneal/queueables", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/sfneal/queueables.git", + "reference": "bac871a6ad2eb896a5ac4d9d7526a4327413ff53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/queueables/zipball/bac871a6ad2eb896a5ac4d9d7526a4327413ff53", + "reference": "bac871a6ad2eb896a5ac4d9d7526a4327413ff53", + "shasum": "" + }, + "require": { + "laravel/framework": ">=5.5", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": ">=6.0", + "scrutinizer/ocular": "^1.8", + "sfneal/mock-models": ">=0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\Queueables\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Abstraction layers for creating Jobs & Queueable's in Laravel applications", + "homepage": "https://github.com/sfneal/queueables", + "keywords": [ + "queueables", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/queueables/issues", + "source": "https://github.com/sfneal/queueables/tree/2.1.0" + }, + "time": "2021-04-20T17:53:40+00:00" + }, + { + "name": "sfneal/redis-helpers", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sfneal/redis-helpers.git", + "reference": "3c4f4be0ca3eebf635b473e345a8208b25eb82dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/redis-helpers/zipball/3c4f4be0ca3eebf635b473e345a8208b25eb82dc", + "reference": "3c4f4be0ca3eebf635b473e345a8208b25eb82dc", + "shasum": "" + }, + "require": { + "illuminate/support": ">=5.6.0", + "php": ">=7.1" + }, + "require-dev": { + "josiasmontag/laravel-redis-mock": ">=1.2.6", + "orchestra/testbench": ">=3.8.0", + "phpunit/phpunit": ">=6.5.14", + "predis/predis": "^1.1", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sfneal\\Helpers\\Redis\\Providers\\RedisHelpersServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Sfneal\\Helpers\\Redis\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Redis helper functions for improved Redis cache transactions with PHP applications.", + "homepage": "https://github.com/sfneal/redis-helpers", + "keywords": [ + "redis-helpers", + "sfneal" + ], + "support": { + "issues": "https://github.com/sfneal/redis-helpers/issues", + "source": "https://github.com/sfneal/redis-helpers/tree/2.0.1" + }, + "time": "2021-09-14T20:19:42+00:00" + }, + { + "name": "sfneal/string-helpers", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sfneal/string-helpers.git", + "reference": "1e26517866dcb14b35bd789dbdc4a49a68b91ff5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/string-helpers/zipball/1e26517866dcb14b35bd789dbdc4a49a68b91ff5", + "reference": "1e26517866dcb14b35bd789dbdc4a49a68b91ff5", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sfneal/array-helpers": "^3.0" + }, + "require-dev": { + "orchestra/testbench": "^3.8|^6.24.1|^7.0", + "phpunit/phpunit": "^7.5|^8.0 <8.5.12|^9.3", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\Helpers\\Strings\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "PHP string helper functions that add familiar functionality from other languages (like string contains, splitting, truncating, etc...)", + "homepage": "https://github.com/sfneal/string-helpers", + "keywords": [ + "sfneal", + "string-helpers" + ], + "support": { + "issues": "https://github.com/sfneal/string-helpers/issues", + "source": "https://github.com/sfneal/string-helpers/tree/1.2.4" + }, + "time": "2022-06-20T20:15:27+00:00" + }, + { + "name": "sfneal/view-export", + "version": "2.10.2", + "source": { + "type": "git", + "url": "https://github.com/sfneal/view-export.git", + "reference": "c134dacb66d5d35ae4b182f02255b393ba372d6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/view-export/zipball/c134dacb66d5d35ae4b182f02255b393ba372d6e", + "reference": "c134dacb66d5d35ae4b182f02255b393ba372d6e", + "shasum": "" + }, + "require": { + "dompdf/dompdf": ">=1.0", + "laravel/framework": ">=7", + "maatwebsite/excel": ">=3.1", + "php": ">=7.4", + "sfneal/aws-s3-helpers": "^1.0", + "sfneal/laravel-helpers": ">=1.0.3", + "sfneal/queueables": "^2.0", + "sfneal/string-helpers": ">=1.1", + "sfneal/view-models": "^3.0" + }, + "require-dev": { + "orchestra/testbench": ">=3.8.0", + "phpunit/phpunit": ">=6.5.14", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sfneal\\ViewExport\\Providers\\ViewExportServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Sfneal\\ViewExport\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "Export Views from Laravel applications to PDF or Excel files", + "homepage": "https://github.com/sfneal/view-export", + "keywords": [ + "sfneal", + "view-export" + ], + "support": { + "issues": "https://github.com/sfneal/view-export/issues", + "source": "https://github.com/sfneal/view-export/tree/2.10.2" + }, + "time": "2021-07-08T17:02:23+00:00" + }, + { + "name": "sfneal/view-models", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sfneal/view-models.git", + "reference": "fe543b84498361b4ec1550e58bfa104e086ab9ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sfneal/view-models/zipball/fe543b84498361b4ec1550e58bfa104e086ab9ba", + "reference": "fe543b84498361b4ec1550e58bfa104e086ab9ba", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sfneal/caching": "^2.0", + "sfneal/laravel-helpers": "^2.4", + "sfneal/queueables": "^2.0", + "sfneal/redis-helpers": "^1.2|^2.0", + "sfneal/string-helpers": ">=1.0.0", + "spatie/laravel-view-models": ">=1.1" + }, + "require-dev": { + "ext-json": "*", + "josiasmontag/laravel-redis-mock": ">=1.2.6", + "orchestra/testbench": ">=3.8.0", + "phpunit/phpunit": ">=6.5.14", + "scrutinizer/ocular": "^1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Sfneal\\ViewModels\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Neal", + "email": "stephen.neal14@gmail.com", + "role": "Developer" + } + ], + "description": "spatie/view-models wrapper with built in response caching.", + "homepage": "https://github.com/sfneal/view-models", + "keywords": [ + "sfneal", + "view-models" + ], + "support": { + "issues": "https://github.com/sfneal/view-models/issues", + "source": "https://github.com/sfneal/view-models/tree/3.1.0" + }, + "time": "2021-09-24T16:24:23+00:00" + }, { "name": "snapappointments/bootstrap-select", "version": "v1.13.18", @@ -3714,6 +5200,75 @@ ], "time": "2020-06-26T18:04:14+00:00" }, + { + "name": "spatie/laravel-view-models", + "version": "1.5.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-view-models.git", + "reference": "32863c30a17debe8f1e879da173d42c768b8877e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-view-models/zipball/32863c30a17debe8f1e879da173d42c768b8877e", + "reference": "32863c30a17debe8f1e879da173d42c768b8877e", + "shasum": "" + }, + "require": { + "illuminate/support": "^8.0|^9.0|^10.0", + "php": "^7.3|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^6.23|^7.0|^8.0", + "pestphp/pest": "^1.22" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\ViewModels\\Providers\\ViewModelsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\ViewModels\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brent Roose", + "email": "brent@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "View models in Laravel", + "homepage": "https://github.com/spatie/laravel-view-models", + "keywords": [ + "laravel-view-models", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-view-models/issues", + "source": "https://github.com/spatie/laravel-view-models/tree/1.5.4" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2023-02-01T08:39:40+00:00" + }, { "name": "swiftmailer/swiftmailer", "version": "v6.3.0", @@ -3792,16 +5347,16 @@ }, { "name": "symfony/console", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9" + "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c77433ddc6cdc689caf48065d9ea22ca0853fbd9", - "reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9", + "url": "https://api.github.com/repos/symfony/console/zipball/3cd51fd2e6c461ca678f84d419461281bd87a0a8", + "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8", "shasum": "" }, "require": { @@ -3866,12 +5421,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.21" + "source": "https://github.com/symfony/console/tree/v5.4.22" }, "funding": [ { @@ -3887,7 +5442,7 @@ "type": "tidelift" } ], - "time": "2023-02-25T16:59:41+00:00" + "time": "2023-03-25T09:27:28+00:00" }, { "name": "symfony/css-selector", @@ -4094,16 +5649,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "404b307de426c1c488e5afad64403e5f145e82a5" + "reference": "04046f35fd7d72f9646e721fc2ecb8f9c67d3339" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/404b307de426c1c488e5afad64403e5f145e82a5", - "reference": "404b307de426c1c488e5afad64403e5f145e82a5", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/04046f35fd7d72f9646e721fc2ecb8f9c67d3339", + "reference": "04046f35fd7d72f9646e721fc2ecb8f9c67d3339", "shasum": "" }, "require": { @@ -4157,7 +5712,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.7" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.2.8" }, "funding": [ { @@ -4173,7 +5728,7 @@ "type": "tidelift" } ], - "time": "2023-02-14T08:44:56+00:00" + "time": "2023-03-20T16:06:02+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4319,16 +5874,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf" + "reference": "05cd1acdd0e3ce8473aaba1d86c188321d85f313" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/3bb6ee5582366c4176d5ce596b380117c8200bbf", - "reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/05cd1acdd0e3ce8473aaba1d86c188321d85f313", + "reference": "05cd1acdd0e3ce8473aaba1d86c188321d85f313", "shasum": "" }, "require": { @@ -4375,7 +5930,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.21" + "source": "https://github.com/symfony/http-foundation/tree/v5.4.22" }, "funding": [ { @@ -4391,20 +5946,20 @@ "type": "tidelift" } ], - "time": "2023-02-17T21:35:35+00:00" + "time": "2023-03-28T07:28:17+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775" + "reference": "2d3a8be2c756353627398827c409af6f126c096d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/09c19fc7e4218fbcf73fe0330eea38d66064b775", - "reference": "09c19fc7e4218fbcf73fe0330eea38d66064b775", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/2d3a8be2c756353627398827c409af6f126c096d", + "reference": "2d3a8be2c756353627398827c409af6f126c096d", "shasum": "" }, "require": { @@ -4487,7 +6042,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.21" + "source": "https://github.com/symfony/http-kernel/tree/v5.4.22" }, "funding": [ { @@ -4503,7 +6058,7 @@ "type": "tidelift" } ], - "time": "2023-02-28T13:19:09+00:00" + "time": "2023-03-31T11:54:37+00:00" }, { "name": "symfony/mime", @@ -5329,16 +6884,16 @@ }, { "name": "symfony/process", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd" + "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", + "url": "https://api.github.com/repos/symfony/process/zipball/4b850da0cc3a2a9181c1ed407adbca4733dc839b", + "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b", "shasum": "" }, "require": { @@ -5371,7 +6926,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.21" + "source": "https://github.com/symfony/process/tree/v5.4.22" }, "funding": [ { @@ -5387,20 +6942,20 @@ "type": "tidelift" } ], - "time": "2023-02-21T19:46:44+00:00" + "time": "2023-03-06T21:29:33+00:00" }, { "name": "symfony/routing", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361" + "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/2ea0f3049076e8ef96eab203a809d6b2332f0361", - "reference": "2ea0f3049076e8ef96eab203a809d6b2332f0361", + "url": "https://api.github.com/repos/symfony/routing/zipball/c2ac11eb34947999b7c38fb4c835a57306907e6d", + "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d", "shasum": "" }, "require": { @@ -5461,7 +7016,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.4.21" + "source": "https://github.com/symfony/routing/tree/v5.4.22" }, "funding": [ { @@ -5477,7 +7032,7 @@ "type": "tidelift" } ], - "time": "2023-02-16T09:33:00+00:00" + "time": "2023-03-14T14:59:20+00:00" }, { "name": "symfony/service-contracts", @@ -5564,16 +7119,16 @@ }, { "name": "symfony/string", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "67b8c1eec78296b85dc1c7d9743830160218993d" + "reference": "193e83bbd6617d6b2151c37fff10fa7168ebddef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/67b8c1eec78296b85dc1c7d9743830160218993d", - "reference": "67b8c1eec78296b85dc1c7d9743830160218993d", + "url": "https://api.github.com/repos/symfony/string/zipball/193e83bbd6617d6b2151c37fff10fa7168ebddef", + "reference": "193e83bbd6617d6b2151c37fff10fa7168ebddef", "shasum": "" }, "require": { @@ -5630,7 +7185,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.2.7" + "source": "https://github.com/symfony/string/tree/v6.2.8" }, "funding": [ { @@ -5646,20 +7201,20 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-20T16:06:02+00:00" }, { "name": "symfony/translation", - "version": "v6.2.7", + "version": "v6.2.8", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "90db1c6138c90527917671cd9ffa9e8b359e3a73" + "reference": "817535dbb1721df8b3a8f2489dc7e50bcd6209b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/90db1c6138c90527917671cd9ffa9e8b359e3a73", - "reference": "90db1c6138c90527917671cd9ffa9e8b359e3a73", + "url": "https://api.github.com/repos/symfony/translation/zipball/817535dbb1721df8b3a8f2489dc7e50bcd6209b5", + "reference": "817535dbb1721df8b3a8f2489dc7e50bcd6209b5", "shasum": "" }, "require": { @@ -5728,7 +7283,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v6.2.7" + "source": "https://github.com/symfony/translation/tree/v6.2.8" }, "funding": [ { @@ -5744,7 +7299,7 @@ "type": "tidelift" } ], - "time": "2023-02-24T10:42:00+00:00" + "time": "2023-03-31T09:14:44+00:00" }, { "name": "symfony/translation-contracts", @@ -5829,16 +7384,16 @@ }, { "name": "symfony/var-dumper", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74" + "reference": "e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6c5ac3a1be8b849d59a1a77877ee110e1b55eb74", - "reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4", + "reference": "e2edac9ce47e6df07e38143c7cfa6bdbc1a6dcc4", "shasum": "" }, "require": { @@ -5898,7 +7453,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.21" + "source": "https://github.com/symfony/var-dumper/tree/v5.4.22" }, "funding": [ { @@ -5914,7 +7469,7 @@ "type": "tidelift" } ], - "time": "2023-02-23T10:00:28+00:00" + "time": "2023-03-25T09:27:28+00:00" }, { "name": "tightenco/collect", diff --git a/config/view-export.php b/config/view-export.php new file mode 100644 index 0000000..2e8aa83 --- /dev/null +++ b/config/view-export.php @@ -0,0 +1,175 @@ + [ + /* + |-------------------------------------------------------------------------- + | Chroot + |-------------------------------------------------------------------------- + | + | dompdf's "chroot". + | + | Prevents dompdf from accessing system files or other files on the webserver. + | All local files opened by dompdf must be in a subdirectory of this directory + | or array of directories. + | DO NOT set it to '/' since this could allow an attacker to use dompdf to + | read any files on the server. This should be an absolute path. + | + | ==== IMPORTANT ==== + | This setting may increase the risk of system exploit. Do not change + | this settings without understanding the consequences. Additional + | documentation is available on the dompdf wiki at: + | https://github.com/dompdf/dompdf/wiki + | + */ + 'chroot' => base_path('vendor/dompdf/dompdf'), + + /* + |-------------------------------------------------------------------------- + | Font Cache + |-------------------------------------------------------------------------- + | + | dompdf's font cache directory. + | + | The location of the DOMPDF font cache directory + | + | This directory contains the cached font metrics for the fonts used by DOMPDF. + | This directory can be the same as $fontDir + | + | Note: This directory must exist and be writable by the webserver process. + | + | Default: leaving as 'null' will result in the 'chroot' being used as the + | font cache directory. + | + */ + 'font_cache' => null, + + /* + |-------------------------------------------------------------------------- + | PHP enabled + |-------------------------------------------------------------------------- + | + | Enable embedded PHP. + | + | If this setting is set to true then DOMPDF will automatically evaluate + | embedded PHP contained within tags. + | + | ==== IMPORTANT ==== + | Enabling this for documents you do not trust (e.g. arbitrary remote html + | pages) is a security risk. Embedded scripts are run with the same level of + | system access available to dompdf. Set this option to false (recommended) + | if you wish to process untrusted documents. + | + | This setting may increase the risk of system exploit. Do not change + | this settings without understanding the consequences. Additional + | documentation is available on the dompdf wiki at: + | https://github.com/dompdf/dompdf/wiki + | + */ + 'php_enabled' => true, + + /* + |-------------------------------------------------------------------------- + | Javascript enabled + |-------------------------------------------------------------------------- + | + | Enable inline Javascript. + | + | If this setting is set to true then DOMPDF will automatically insert + | JavaScript code contained within tags. + | + */ + 'javascript_enabled' => true, + + /* + |-------------------------------------------------------------------------- + | HTML 5 parsable enabled + |-------------------------------------------------------------------------- + | + | Use the more-than-experimental HTML5 Lib parser. + | + */ + 'html5_parsable' => true, + + /* + |-------------------------------------------------------------------------- + | Remote enabled + |-------------------------------------------------------------------------- + | + | Enable remote file access. + | + | If this setting is set to true, DOMPDF will access remote sites for + | images and CSS files as required. + | + | ==== IMPORTANT ==== + | This can be a security risk, in particular in combination with isPhpEnabled and + | allowing remote html code to be passed to $dompdf = new DOMPDF(); $dompdf->load_html(...); + | This allows anonymous users to download legally doubtful internet content which on + | tracing back appears to being downloaded by your server, or allows malicious php code + | in remote html pages to be executed by your server with your account privileges. + | + | This setting may increase the risk of system exploit. Do not change + | this settings without understanding the consequences. Additional + | documentation is available on the dompdf wiki at: + | https://github.com/dompdf/dompdf/wiki + | + */ + 'remote_enabled' => true, + + /* + |-------------------------------------------------------------------------- + | Log Output + |-------------------------------------------------------------------------- + | + | The file that Dompdf logs should be written to. + | + */ + 'log_output' => storage_path('logs/dompdf.htm'), + + /* + |-------------------------------------------------------------------------- + | PDF Metadata default + |-------------------------------------------------------------------------- + | + | PDF metadata that should be used by default. + | + */ + 'metadata' => [ + 'Title' => '', + 'Author' => '', + 'Subject' => '', + 'Keywords' => '', + 'Creator' => '', + 'Producer' => '', + 'CreationDate' => '', + 'ModDate' => '', + 'Trapped' => '', + ], + + /* + |-------------------------------------------------------------------------- + | PDF Content Loader convention + |-------------------------------------------------------------------------- + | + | Determine if PDF content should be loaded using the 'disk' to export a + | static HTML file prior to loading into the PDF. Set the value to + | 'memory' if you would like load HTML stored in memory directly to the PDF. + | + | Values: 'memory' or 'disk' + | + */ + 'content_loader' => 'disk', + ], + + /* + |-------------------------------------------------------------------------- + | Default Cloud Filesystem Disk + |-------------------------------------------------------------------------- + | + | Many applications store files both locally and in the cloud. For this + | reason, you may specify a default "cloud" driver here. This driver + | will be bound as the Cloud disk implementation in the container. + | + */ + 'disk' => 'cloud', +]; diff --git a/resources/views/auto/detail.blade.php b/resources/views/auto/detail.blade.php index 0ecd105..832f91f 100644 --- a/resources/views/auto/detail.blade.php +++ b/resources/views/auto/detail.blade.php @@ -9,6 +9,11 @@
+ +
+
diff --git a/resources/views/auto/detailpdf.blade.php b/resources/views/auto/detailpdf.blade.php new file mode 100644 index 0000000..24e3353 --- /dev/null +++ b/resources/views/auto/detailpdf.blade.php @@ -0,0 +1,249 @@ + + + + + + + + + +
+ + +

Scheda {{ $dettagli->marca; }} {{ $dettagli->modello; }} - {{ $dettagli->targa; }}

+
+
+
+
+ Dettaglio +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Marca:{{ $dettagli->marca; }}Modello:{{ $dettagli->modello; }}Targa: {{ $dettagli->targa; }}
Alimentazione:{{ $dettagli->alimentazione; }}Cilindrata:{{ $dettagli->cilindrata; }}Cavalli Fisc.:{{ $dettagli->cvfiscali; }}
Num.Telaio:{{ $dettagli->ntelaio; }}Num. Motore:{{ $dettagli->nmotore; }}Data acquisto:{{ $dettagli->data_acquisto; }}
Kilometraggio:{{ $km ?? ''; }}Note:{{ $dettagli->note; }}
+
+
+
+
+
+


+ +
+
+
+
+ Revisioni +
+
+
+ + + + + + + + + + + + + + + @foreach($operazione as $operazioni) + @if ($operazioni->type =='revisione') + + + + + + + + + + @endif + @endforeach + + +
DataKmSuperataCentro RevisioneDescrizioneProssima revisioneImporto
{{ $operazioni->data; }}{{ $operazioni->km; }}{{ $revisione[$operazioni->id][0]->superata; }}{{ $revisione[$operazioni->id][0]->centrorevisione; }}{{ $revisione[$operazioni->id][0]->descrizione; }}{{ $revisione[$operazioni->id][0]->dataproxrevisione; }}{{ $operazioni->importo; }}
+
+
+
+
+
+ +

+ +
+
+
+
+ Manutenzione +
+
+
+ + + + + + + + + + + + @foreach($operazione as $operazioni) + @if ($operazioni->type =='manutenzione') + + + + + + + @endif + @endforeach + + +
DataKmDescrizioneImporto
{{ $operazioni->data; }}{{ $operazioni->km; }}{{ $manutenzione[$operazioni->id][0]->descrizione; }}{{ $operazioni->importo; }}
+
+
+
+
+
+ +

+ +
+
+
+
+ Accessori/Ricambi +
+
+
+ + + + + + + + + + + + @foreach($operazione as $operazioni) + @if ($operazioni->type=='accessori') + + + + + + + @endif + @endforeach + + +
DataKmDescrizioneImporto
{{ $operazioni->data; }}{{ $operazioni->km; }}{{ $accessori[$operazioni->id][0]->descrizione; }}{{ $operazioni->importo; }}
+
+
+
+
+
+ +

+ +
+
+
+
+ Rifornimenti +
+
+
+ + + + + + + + + + + + + + @foreach($operazione as $operazioni) + @if ($operazioni->type =='rifornimento') + + + + + + + + + @endif + @endforeach + + +
DataKmDistributoreEuro al litroLitriImporto
{{ $operazioni->data; }}{{ $operazioni->km; }}{{ $rifornimento[$operazioni->id][0]->distributore; }}{{ $rifornimento[$operazioni->id][0]->eurolitro; }}{{ $rifornimento[$operazioni->id][0]->litri; }}{{ $operazioni->importo; }}
+
+
+
+
+
+ +

+ +
+ + + + diff --git a/resources/views/letture/enel/list.blade.php b/resources/views/letture/enel/list.blade.php index 15415bc..3dd4cd2 100644 --- a/resources/views/letture/enel/list.blade.php +++ b/resources/views/letture/enel/list.blade.php @@ -2,7 +2,7 @@ @section('content')
-

Letture Gas

+

Letture Energia Elettrica

diff --git a/routes/admin.php b/routes/admin.php index 25fa71e..85febcb 100644 --- a/routes/admin.php +++ b/routes/admin.php @@ -79,6 +79,7 @@ Route::get('/', [MovimentiController::class,'dashboard']); Route::get('auto/accessori', [AutoController::class, 'accessoriAuto']); Route::post('auto/accessori', [AutoController::class, 'saveAccessori']); Route::get('auto/operazioni', [AutoController::class, 'getOperazioni']); + Route::get('auto/operazioni/pdf', [AutoController::class, 'exportPdfOperazioni']); /// TEST routes Route::get('fullcalender', [FullCalenderController::class, 'index']);