Download the PHP package 369work/tokusho-generator without Composer

On this page you can find all versions of the php package 369work/tokusho-generator. 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 tokusho-generator

tokusho-generator

特定商取引法に基づく表示ページを自動生成するPHPライブラリ。

ネット販売における決済サービスの審査通過を念頭に設計されており、必要な記載項目の欠落・形式不備を検出してHTMLページを生成します。


特徴


動作環境


Webツールとして使う(非エンジニア向け)

Composerの知識がなくても、ブラウザ上のフォームから特商法ページを生成できます。

ブラウザで http://localhost:8080 を開くとフォームが表示されます。

フォームに情報を入力して「特商法ページを生成する」を押すと、HTMLファイルをダウンロードできます。


インストール(ライブラリとして使う)


基本的な使い方


入力フィールド一覧

キー ラベル 必須
company_name 販売業者名 ✅
responsible_name 代表者・責任者の氏名 ✅
address 所在地 ✅
address_note 所在地に関する補足 ―
phone 電話番号 ✅
email メールアドレス ✅
website_url ウェブサイトURL ―
price_description 販売価格 ✅
payment_methods 支払方法 ✅
payment_timing 支払時期 ✅
shipping_fee 送料 ✅
delivery_timing サービス提供時期・引き渡し時期 ✅
software_requirements 動作環境(ソフトウェア・デジタルコンテンツ取引) ―
subscription_terms 継続契約に関する事項(サブスク等) ―
warranty_policy 契約不適合責任(品質・欠陥に関する責任) ―
return_policy 返品・キャンセルポリシー ✅
other その他 ―

API リファレンス

TokushoGenerator

コンストラクタ

オプション($options):

キー 型 デフォルト値 説明
page_title string 特定商取引法に基づく表示 HTMLの <title> タグの値
heading string 特定商取引法に基づく表示 ページ内 <h1> のテキスト
standalone bool true false にすると <main> 以下のみ出力
lang string ja <html lang=""> の値

メソッド

メソッド 戻り値 説明
validate() void エラーがあれば ValidationException をスロー
check() array<string, string[]> エラー配列を返す(例外なし)
toHTML() string 特商法ページのHTMLを生成
toArray() array ラベル・値・必須フラグの配列を返す
toJSON() string JSON文字列を返す
set($key, $val) static フィールドの値をセット(メソッドチェーン可)
fill(array) static 複数フィールドをまとめてセット
get($key) string フィールドの値を取得
addField($def) static カスタムフィールドを追加

カスタムフィールドの追加


WordPressプラグインとの連携

本ライブラリはWordPressプラグインのコアとして設計されています。 プラグイン側でComposerオートロードを読み込み、TokushoGenerator を呼び出す形で統合します。


ライセンス

GNU General Public License v3.0 or later

このライブラリはGPL-3.0-or-laterのもとで公開されています。 WordPressはGPL-2.0-or-laterで配布されており、ライセンス的に互換性があります。

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


免責事項

このライブラリは特商法ページの作成を補助するツールです。 生成されたページの法的有効性・完全性・各決済サービスの審査通過を保証するものではありません。 実際の運用にあたっては、最新の法令および各サービスの規約をご自身でご確認ください。

本ライブラリの使用によって生じたいかなる損害・不利益についても、作者は一切の責任を負いません。


Copyright

Copyright (c) 2025 miroku (369work)
Licensed under the GPL-3.0-or-later


All versions of tokusho-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 369work/tokusho-generator contains the following files

Loading the files please wait ...