diff --git a/composer.json b/composer.json index 0a09c44..0bdb355 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,13 @@ "php": "^7.2.5", "alicfeng/identity-card": "^3.1", "alipaysdk/easysdk": "^2.2", + "barryvdh/laravel-snappy": "^1.0", "doctrine/dbal": "^3.3", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^6.3", "intervention/image": "^2.5", + "kkokk/poster": "^2.3", "kris/laravel-form-builder": "^1.30", "laravel/framework": "^7.0", "laravel/tinker": "^2.0", diff --git a/composer.lock b/composer.lock index 6f766a1..0ac6a46 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": "ec22748be8ce01a464c6f85a50d1f5c0", + "content-hash": "3e9ba25faec4e846c39c1e44b0774e90", "packages": [ { "name": "adbario/php-dot-notation", @@ -426,6 +426,84 @@ }, "time": "2017-10-17T09:59:25+00:00" }, + { + "name": "barryvdh/laravel-snappy", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/barryvdh/laravel-snappy.git", + "reference": "2c18a3602981bc6f25b32908cf8aaa05952ab2f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/barryvdh/laravel-snappy/zipball/2c18a3602981bc6f25b32908cf8aaa05952ab2f7", + "reference": "2c18a3602981bc6f25b32908cf8aaa05952ab2f7", + "shasum": "" + }, + "require": { + "illuminate/filesystem": "^6|^7|^8|^9", + "illuminate/support": "^6|^7|^8|^9", + "knplabs/knp-snappy": "^1", + "php": ">=7.2" + }, + "require-dev": { + "orchestra/testbench": "^4|^5|^6|^7" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "PDF": "Barryvdh\\Snappy\\Facades\\SnappyPdf", + "SnappyImage": "Barryvdh\\Snappy\\Facades\\SnappyImage" + }, + "providers": [ + "Barryvdh\\Snappy\\ServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Barryvdh\\Snappy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" + } + ], + "description": "Snappy PDF/Image for Laravel", + "keywords": [ + "image", + "laravel", + "pdf", + "snappy", + "wkhtmltoimage", + "wkhtmltopdf" + ], + "support": { + "issues": "https://github.com/barryvdh/laravel-snappy/issues", + "source": "https://github.com/barryvdh/laravel-snappy/tree/v1.0.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2022-01-29T19:36:49+00:00" + }, { "name": "brick/math", "version": "0.9.3", @@ -2051,6 +2129,124 @@ ], "time": "2022-05-21T17:30:32+00:00" }, + { + "name": "kkokk/poster", + "version": "v2.3.3", + "source": { + "type": "git", + "url": "https://github.com/kkokk/poster.git", + "reference": "a28569162d3ede8c0382dc77045fd9bb53117b35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kkokk/poster/zipball/a28569162d3ede8c0382dc77045fd9bb53117b35", + "reference": "a28569162d3ede8c0382dc77045fd9bb53117b35", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "ext-iconv": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Kkokk\\Poster\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "lang", + "email": "732853989@qq.com" + } + ], + "description": "PHP生成海报", + "support": { + "issues": "https://github.com/kkokk/poster/issues", + "source": "https://github.com/kkokk/poster/tree/v2.3.3" + }, + "time": "2025-07-07T03:08:34+00:00" + }, + { + "name": "knplabs/knp-snappy", + "version": "v1.4.4", + "source": { + "type": "git", + "url": "https://github.com/KnpLabs/snappy.git", + "reference": "3db13fe45d12a7bccb2b83f622e5a90f7e40b111" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/KnpLabs/snappy/zipball/3db13fe45d12a7bccb2b83f622e5a90f7e40b111", + "reference": "3db13fe45d12a7bccb2b83f622e5a90f7e40b111", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/log": "^1.0||^2.0||^3.0", + "symfony/process": "~3.4||~4.3||~5.0||~6.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16||^3.0", + "pedrotroller/php-cs-custom-fixer": "^2.19", + "phpstan/phpstan": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.0.0", + "phpunit/phpunit": "~7.4||~8.5" + }, + "suggest": { + "h4cc/wkhtmltoimage-amd64": "Provides wkhtmltoimage-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency", + "h4cc/wkhtmltoimage-i386": "Provides wkhtmltoimage-i386 binary for Linux-compatible machines, use version `~0.12` as dependency", + "h4cc/wkhtmltopdf-amd64": "Provides wkhtmltopdf-amd64 binary for Linux-compatible machines, use version `~0.12` as dependency", + "h4cc/wkhtmltopdf-i386": "Provides wkhtmltopdf-i386 binary for Linux-compatible machines, use version `~0.12` as dependency", + "wemersonjanuario/wkhtmltopdf-windows": "Provides wkhtmltopdf executable for Windows, use version `~0.12` as dependency" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Knp\\Snappy\\": "src/Knp/Snappy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KNP Labs Team", + "homepage": "http://knplabs.com" + }, + { + "name": "Symfony Community", + "homepage": "http://github.com/KnpLabs/snappy/contributors" + } + ], + "description": "PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.", + "homepage": "http://github.com/KnpLabs/snappy", + "keywords": [ + "knp", + "knplabs", + "pdf", + "snapshot", + "thumbnail", + "wkhtmltopdf" + ], + "support": { + "issues": "https://github.com/KnpLabs/snappy/issues", + "source": "https://github.com/KnpLabs/snappy/tree/v1.4.4" + }, + "time": "2023-09-13T12:18:19+00:00" + }, { "name": "kris/laravel-form-builder", "version": "1.52.0", @@ -10057,5 +10253,5 @@ "php": "^7.2.5" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/config/snappy.php b/config/snappy.php new file mode 100644 index 0000000..46d12ec --- /dev/null +++ b/config/snappy.php @@ -0,0 +1,52 @@ + [ + 'enabled' => true, + 'binary' => env('WKHTML_PDF_BINARY', '/usr/local/bin/wkhtmltopdf'), + 'timeout' => false, + 'options' => [], + 'env' => [], + ], + + 'image' => [ + 'enabled' => true, + 'binary' => env('WKHTML_IMG_BINARY', '/usr/local/bin/wkhtmltoimage'), + 'timeout' => false, + 'options' => [], + 'env' => [], + ], + +]; diff --git a/public/.well-known/acme-challenge/bwEUcffdpzArbKuIfjgcRm1X58I4QKy89JNRIYSVZFg b/public/.well-known/acme-challenge/bwEUcffdpzArbKuIfjgcRm1X58I4QKy89JNRIYSVZFg new file mode 100644 index 0000000..a0b12b0 --- /dev/null +++ b/public/.well-known/acme-challenge/bwEUcffdpzArbKuIfjgcRm1X58I4QKy89JNRIYSVZFg @@ -0,0 +1 @@ +bwEUcffdpzArbKuIfjgcRm1X58I4QKy89JNRIYSVZFg.5-N8Ip449Q-0w2bLgJMR9BQtRA8QQojBMyN7wrETK2I \ No newline at end of file