Download the PHP package henry-wiki/sc-indent-fix without Composer

On this page you can find all versions of the php package henry-wiki/sc-indent-fix. 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 sc-indent-fix

sc-indent-fix

PHP+HTML mixed indentation fixer.

PHP + HTML 混合縮排修復工具。

Also re-indents multi-line string blocks ($var = "...") — HTML content by tag nesting depth, SQL content in dbt/GitLab style. 亦會重新排版多行字串區塊($var = "...")——HTML 內容依標籤嵌套深度、SQL 內容依 dbt/GitLab 風格。


Requirements / 系統需求


Installation / 安裝方式


Quick Start / 快速開始


Architecture / 架構說明

The fixer works in two layers: 修復器分為兩層處理:

  1. php-cs-fixer — Applies PSR-2 formatting in-memory / 在記憶體中套用 PSR-2 格式化
  2. sc_indent_fix_phphtml — Secondary pass for PHP+HTML mixed indentation / 二次處理,修正 PHP + HTML 混合縮排

Examples / 範例

1. Basic function / 基本函式

2. if/else + HTML tag nesting / if/else + HTML 標籤嵌套

3. Nested HTML tags / 巢狀 HTML 標籤

4. foreach inside HTML / HTML 內嘅 foreach

5. Switch/case

6. Multi-line HTML string block / 多行 HTML 字串區塊

7. Multi-line SQL string block / 多行 SQL 字串區塊


Known Limitations / 已知限制

The formatter does not parse or modify the following syntaxes. They are simply passed through unchanged — the original code is never altered or removed: 以下語法嘅縮排唔會被修正,但原碼完全唔會受影響、唔會被刪除或改變:

These limitations will not be addressed in the near future. 以上限制短期內唔會處理。


License / 授權條款

MIT


All versions of sc-indent-fix with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
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 henry-wiki/sc-indent-fix contains the following files

Loading the files please wait ...