Download the PHP package cubemage/pdfjs-bundle without Composer

On this page you can find all versions of the php package cubemage/pdfjs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pdfjs-bundle

CubeMage PDF.js Bundle for Symfony

Latest Version on Packagist Build Status

一个为 Symfony 设计的轻量级 Bundle,可以轻松地将 Mozilla 的 PDF.js 查看器集成到你的项目中。它允许你在任何 Twig 模板中渲染一个功能齐全的 PDF 查看器,并支持 PDF 表单数据的提取和保存。

✨ 主要功能

📦 安装

  1. 通过 Composer 安装 Bundle:

  2. config/bundles.php 文件中注册 Bundle:

  3. 安装 Bundle 的 Web 资源。此命令会将 PDF.js 的前端文件链接到你项目的 public/ 目录下。

⚙️ 配置

你可以选择性地配置一个全局默认的数据保存路由。在 config/packages/ 目录下创建一个新文件 cube_mage_pdf_js.yaml

🚀 使用方法

  1. 在你的控制器中,创建用于保存数据的路由

Bundle 负责前端的展示和数据提交,但你需要自己创建一个 Controller Action 来接收数据并将其存入数据库。

  1. 在你的 Twig 模板中调用 pdf_viewer 函数

现在,你可以在任何 Twig 模板中轻松地渲染查看器了。

如果你已经在 cube_mage_pdf_js.yaml 中配置了 default_save_route,调用可以更简单:

🤝 贡献

欢迎任何形式的贡献!请阅读 CONTRIBUTING.md 文件了解如何开始。

📜 许可证

本项目基于 MIT 许可证开源。详情请见 LICENSE 文件。


All versions of pdfjs-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/framework-bundle Version ^5.4 || ^6.0 || ^7.0
symfony/twig-bundle Version ^5.4 || ^6.0 || ^7.0
symfony/asset Version ^5.4 || ^6.0 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cubemage/pdfjs-bundle contains the following files

Loading the files please wait ....