Download the PHP package tyokinuhata/html-builder without Composer

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

HTML Builder

PHPでHTMLの組み立てができるライブラリ

このライブラリを利用する場合

インストール

サンプルコード

基本的に要素は, ->要素名()の形式で記述します.
属性と値を取る要素の場合は, ->要素名('属性', '値')のように記述します.
例外として, 値を取らなくて良い属性を記述する場合は, ->要素名('@属性')のように記述します.

プレーンなテキストを記述する場合は, ->text('テキスト')のように, 引数に対して描画したいテキストを渡します.

CSSの記述は, ->div('style', 'プロパティ:値;'), ->link('rel', '.cssファイルのパス')のようにできる他, ->style(['セレクタ' => ['プロパティ' => '値'])のように記述することも可能です.

->upstream()はその階層を抜ける場合に使用します.
複数階層抜ける場合は->upstream(2)のように, 抜ける階層数を引数に指定します.

->build('パス')はビルド用のメソッドです.
引数で指定したパスに対して, PHPファイルを基にHTMLファイルを生成します.

->append()は出力用のメソッドです.

ビルドインサーバの起動

使用可能な要素一覧

このライブラリを開発する場合

クローン

セットアップ

ビルドインサーバの起動

各ファイルの説明

ファイル名 説明
HtmlBuilder 要素とポインタの管理, 各トレイトを呼び出すクラス
Insert バッファへの挿入を行うメソッドをまとめたトレイト
Core 重要な操作をまとめたトレイト
Root 根本となる要素のトレイト
Meta 文書のメタデータ関連のトレイト
Section セクション関連のトレイト
Content コンテンツの分類関連のトレイト
Text テキスト関連のトレイト
Embedded コンテンツの埋め込み関連のトレイト
Table テーブル関連のトレイト
Form フォーム関連のトレイト

リンク

GitHub
Packagist


All versions of html-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.4
tyokinuhata/html-builder 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 tyokinuhata/html-builder contains the following files

Loading the files please wait ....