Download the PHP package zamasoft/cti-php without Composer

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

CTI Driver for PHP

License

Copper PDF 文書変換サーバーに接続するためのPHPドライバです。

API ドキュメント

インストール

Composer(GitHub VCS / Packagist)

GitHub リポジトリから直接インストールする場合は、先に VCS リポジトリを登録してください。

Packagist に登録済みの環境では、composer require zamasoft/cti-php だけでもインストールできます。

composer.jsonrepositories に直接追加する場合の例:

手動インストール

src/CTI/ ディレクトリをプロジェクトにコピーし、require_once で読み込んでください。

動作環境

基本的な使い方

API概要

Session クラスの主要メソッド

メソッド 説明
set_output_as_file($file) PDFをファイルに出力
set_output_as_resource($fp) PDFをストリームリソースに出力
set_output_as_variable(&$var) PDFを変数に出力
set_output_as_directory($dir, $prefix, $suffix) PDFをディレクトリに連番で出力
set_message_func($func) メッセージコールバックを設定
set_progress_func($func) 進捗コールバックを設定
set_resolver_func($func) リソース解決コールバックを設定
property($name, $value) プロパティを設定
start_main($uri, $opts) メイン文書の送信を開始
end_main() メイン文書の送信を完了
start_resource($uri, $opts) リソースの送信を開始
end_resource() リソースの送信を完了
transcode($uri) サーバー側リソースを変換
set_continuous($continuous) 連続モードの設定
join() 結果の結合
reset() セッションのリセット
close() セッションのクローズ

テストの実行方法

テストにはCopper PDFサーバーへの接続が必要な統合テストと、接続不要なユーティリティ単体テストがあります。

  1. test-config.json を作成:

  2. PHPUnit でテストを実行:

サーバーが起動していない場合、統合テストは自動的にスキップされ、HelpersTest は単体で実行されます。

Ant から実行する場合:

ドキュメント

ドキュメント生成

phpDocumentorを使用してAPIドキュメントを生成できます:

または Ant を使用:

Ant で配布アーカイブを作る場合:

ライセンス

Copyright (c) 2011-2025 Zamasoft.

Apache License Version 2.0 に基づいてライセンスされます。

詳細は LICENSE ファイルを参照してください。

変更履歴

v2.2.0 (2025/12/30)

v2.1.4 (2021/11/15)

v2.1.3 (2014/08/11)

v2.1.2 (2013/04/24)

v2.1.1 (2011/03/16)

v2.1.0 (2011/03/03)

v2.0.0 (2010/11/02)


All versions of cti-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
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 zamasoft/cti-php contains the following files

Loading the files please wait ...