beautiful code

This commit is contained in:
2025-10-28 23:21:22 +05:00
parent 4a24ee61ff
commit 72d2a4b1f5
4 changed files with 172 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ class CardRequisiteModule implements ModuleContract
type: ModulePackageType::PACKAGE,
name: 'phpoffice/phpword',
message: 'Required for docx file generation',
version: 'dev-master',
version: '"dev-master"',
),
];
}

View File

@@ -69,7 +69,11 @@ class ModuleServiceProvider extends ServiceProvider
};
if (! $missingPackage) {
abort(500, "{$package->name} {$package->type} must be installed (module: {$module->name})");
abort(
500,
"{$package->name} {$package->version} {$package->type->value} must be installed (module: {$module->name}) \n
{$package->message}"
);
}
}
}

View File

@@ -16,6 +16,7 @@
"laravel/tinker": "^2.10.1",
"laravel/ui": "^4.6",
"mpdf/mpdf": "^8.2",
"phpoffice/phpword": "dev-master",
"spatie/laravel-translatable": "^6.11",
"stevebauman/location": "^7.6"
},

167
composer.lock generated
View File

@@ -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": "769fb178b231c9a72b90a0bc385e946f",
"content-hash": "b0a0696c3837569345f4ed8ecd9b2338",
"packages": [
{
"name": "abdulmajeed-jamaan/filament-translatable-tabs",
@@ -5209,6 +5209,167 @@
},
"time": "2020-10-15T08:29:30+00:00"
},
{
"name": "phpoffice/math",
"version": "0.3.0",
"source": {
"type": "git",
"url": "https://github.com/PHPOffice/Math.git",
"reference": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPOffice/Math/zipball/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a",
"reference": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-xml": "*",
"php": "^7.1|^8.0"
},
"require-dev": {
"phpstan/phpstan": "^0.12.88 || ^1.0.0",
"phpunit/phpunit": "^7.0 || ^9.0"
},
"type": "library",
"autoload": {
"psr-4": {
"PhpOffice\\Math\\": "src/Math/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Progi1984",
"homepage": "https://lefevre.dev"
}
],
"description": "Math - Manipulate Math Formula",
"homepage": "https://phpoffice.github.io/Math/",
"keywords": [
"MathML",
"officemathml",
"php"
],
"support": {
"issues": "https://github.com/PHPOffice/Math/issues",
"source": "https://github.com/PHPOffice/Math/tree/0.3.0"
},
"time": "2025-05-29T08:31:49+00:00"
},
{
"name": "phpoffice/phpword",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/PHPOffice/PHPWord.git",
"reference": "0ab0b4940bc52c7183e82ab2fd55324607037a73"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPOffice/PHPWord/zipball/0ab0b4940bc52c7183e82ab2fd55324607037a73",
"reference": "0ab0b4940bc52c7183e82ab2fd55324607037a73",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-xml": "*",
"ext-zip": "*",
"php": "^7.1|^8.0",
"phpoffice/math": "^0.3"
},
"require-dev": {
"dompdf/dompdf": "^2.0 || ^3.0",
"ext-libxml": "*",
"friendsofphp/php-cs-fixer": "^3.3",
"mpdf/mpdf": "^7.0 || ^8.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^0.12.88 || ^1.0.0 || ^2.0.0",
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
"phpunit/phpunit": ">=7.0",
"symfony/process": "^4.4 || ^5.0",
"tecnickcom/tcpdf": "^6.5"
},
"suggest": {
"dompdf/dompdf": "Allows writing PDF",
"ext-xmlwriter": "Allows writing OOXML and ODF",
"ext-xsl": "Allows applying XSL style sheet to headers, to main document part, and to footers of an OOXML template"
},
"default-branch": true,
"type": "library",
"autoload": {
"psr-4": {
"PhpOffice\\PhpWord\\": "src/PhpWord"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0-only"
],
"authors": [
{
"name": "Mark Baker"
},
{
"name": "Gabriel Bull",
"email": "me@gabrielbull.com",
"homepage": "http://gabrielbull.com/"
},
{
"name": "Franck Lefevre",
"homepage": "https://rootslabs.net/blog/"
},
{
"name": "Ivan Lanin",
"homepage": "http://ivan.lanin.org"
},
{
"name": "Roman Syroeshko",
"homepage": "http://ru.linkedin.com/pub/roman-syroeshko/34/a53/994/"
},
{
"name": "Antoine de Troostembergh"
}
],
"description": "PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)",
"homepage": "https://phpoffice.github.io/PHPWord/",
"keywords": [
"ISO IEC 29500",
"OOXML",
"Office Open XML",
"OpenDocument",
"OpenXML",
"PhpOffice",
"PhpWord",
"Rich Text Format",
"WordprocessingML",
"doc",
"docx",
"html",
"odf",
"odt",
"office",
"pdf",
"php",
"reader",
"rtf",
"template",
"template processor",
"word",
"writer"
],
"support": {
"issues": "https://github.com/PHPOffice/PHPWord/issues",
"source": "https://github.com/PHPOffice/PHPWord/tree/master"
},
"time": "2025-06-06T10:02:28+00:00"
},
{
"name": "phpoption/phpoption",
"version": "1.9.4",
@@ -12372,7 +12533,9 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {},
"stability-flags": {
"phpoffice/phpword": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": {