Download the PHP package paoatoffice/reports-web without Composer

On this page you can find all versions of the php package paoatoffice/reports-web. 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 reports-web

Reports.Web — PHP パッケージとサンプル

Packagist engine Live demo

Reports.Web は、ブラウザで帳票をデザインし、いろいろな言語から PDF を作る帳票ツールです。このリポジトリには、PHP から使う Composer パッケージ paoatoffice/reports-web(src/)と、それを使ったサンプル(配布 ZIP に収録しているもの)が入っています。

請求書・見積書・納品書・宛名ラベル・名刺など、日本の業務帳票をそのまま作れます。帳票のレイアウトはブラウザのデザイナーで作り、PHP は値を入れて「印刷データ(PREPEJ)」を作るだけです。描画は C++ WebAssembly の帳票エンジンが行います。

デザイナー(ブラウザ) PHP のサンプル(プレビュー)

パッケージを使う

PHP 8.1 以降。PHP 標準の機能だけで動きます(curl 拡張は不要)。

クラス 主なメソッド
PrintData setDefinition()・pageStart()/pageEnd()・setValue()・setRepeatedValue()(明細行)・setImage()・setBarcode()・changeAttributes()・toArray()/toJson()/save()
ReportsWebEngine renderPdf($printData)(PDF のバイト列)・health()。URL の既定は環境変数 REPORTS_ENGINE_URL、なければ http://127.0.0.1:3107
ReportsWebEngineException エンジンのエラー。getStatus() で HTTP ステータス

サンプルを選ぶ

# フォルダー 内容 ポート
01 01.あっという間に帳票出力 短い PHP コードで 1 ページの帳票を表示・PDF 出力 http://127.0.0.1:19200/
02 02.全帳票をWebでプレビュー PHP と PostgreSQL で 8 種類の帳票(請求書・見積書・郵便番号 81 ページなど)をプレビュー・PDF 出力 http://127.0.0.1:19201/
03 03.Web API・REST連携 帳票処理を Web API にし、別の利用側 Web アプリから呼ぶ http://127.0.0.1:19202/

必要なのは Docker(Docker Desktop など)だけです。PHP や PostgreSQL をパソコンに入れる必要はありません。

各サンプルは、Docker イメージを作るときに Composer でこのパッケージを取り込みます。帳票エンジンのイメージを起動し、同じイメージからデザイナー・プレビュー画面のファイルを取り出して使います。

体験版と製品版

パッケージと帳票エンジンは体験版で、出力には赤い「SAMPLE」の印が付きます。ご購入後に納品するライセンスファイルを帳票エンジンに設定すると印が消えます(開発用パソコン 1 台につき 1 ライセンス、運用環境はランタイムライセンスフリー)。

ライセンス:パッケージ(src/)と帳票エンジンは Reports.Web の使用許諾(MIT License です。Manual/ のプログラマーズガイドは配布 ZIP 向けに書かれています。

ほかの言語

同じ帳票定義・印刷データを、PHP・Java・.NET・Go・Ruby・Rust・Node.js から使えます。Pure Java・WPF 版もあります。→ https://github.com/ReportsWeb


English

Reports.Web is a report designer and PDF engine. Design report layouts (invoices, estimates, delivery slips, address labels, business cards) in the browser, build print data (PREPEJ JSON) in PHP, and render PDF with the C++ WebAssembly engine. This repository contains the Composer package paoatoffice/reports-web (src/) and the PHP samples shipped in the Reports.Web download.

PrintData builds the print data; ReportsWebEngine::renderPdf() returns the PDF bytes (PHP 8.1+, no curl needed). The package and the engine are trial builds: output carries a red "SAMPLE" mark until a purchased license file is configured. Package: Reports.Web license. Sample code: MIT.

Pao@Office — https://www.pao.ac/ — [email protected]


All versions of reports-web with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 paoatoffice/reports-web contains the following files

Loading the files please wait ...