avoutic/web-framework-browserless 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

avoutic/web-framework-browserless

最新稳定版本:2.0.0

Composer 安装命令:

composer require avoutic/web-framework-browserless

包简介

The Browserless module for web-framework

README 文档

README

A module for WebFramework that provides PDF generation capabilities using the Browserless service.

Installation

composer require avoutic/web-framework-browserless

Requirements

  • PHP 8.2 or higher
  • WebFramework 8.x
  • A Browserless service instance

Configuration

If you are using the definition from definitions/defitinions.php. You can just add the following browserless.php to your auth config directory (config/auth):

<?php

return [
    'local_server' => 'http://your-local-server',
    'pdf_endpoint' => 'https://your-browserless-instance/pdf',
    'token' => 'your-browserless-token'
];

Usage

The module provides methods to generate PDFs from web pages:

$browserless->outputPdf('/path/to/page', 'output.pdf');
// or
$stream = $browserless->outputStream('/path/to/page');

License

MIT License - see LICENSE file for details

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-29