https://github.com/gocom/php-textile-cli
PHP-Textile CLI
https://github.com/gocom/php-textile-cli
Last synced: 9 months ago
JSON representation
PHP-Textile CLI
- Host: GitHub
- URL: https://github.com/gocom/php-textile-cli
- Owner: gocom
- License: mit
- Created: 2025-07-19T07:18:59.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-21T07:41:06.000Z (11 months ago)
- Last Synced: 2025-08-21T11:55:29.086Z (10 months ago)
- Language: PHP
- Size: 51.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
PHP-Textile CLI
=====
[](https://packagist.org/packages/rah/php-textile-cli) [](https://sonarcloud.io/dashboard?id=gocom_php-textile-cli) [](https://sonarcloud.io/dashboard?id=gocom_php-textile-cli)
CLI application for parsing Textile markup using [PHP-Textile](https://github.com/textile/php-textile) library, written
in PHP. Accepts Textile markup input and converts it into well-formed HTML.
Install
-----
Using [Composer](https://getcomposer.org):
```shell
$ composer require rah/php-textile-cli
```
Or [download](https://github.com/gocom/php-textile-cli/releases/latest) a textile.zip from the releases. The
ZIP contains a packaged textile.phar, man pages and shell completion definitions for bash, fish and zsh.
Usage
-----
```shell
$ textile [
[-t|--document-type ]
[-d|--document-root-directory ]
[-l|--lite]
[-i|--no-images]
[-L|--link-relationship ]
[-r|--restricted]
[-U|--raw-blocks]
[-A|--align-classes]
[-a|--no-align-classes]
[-b|--no-block-tags]
[-w|--no-line-wrap]
[-p|--image-prefix ]
[-P|--link-prefix ]
[-z|--no-dimensions]
[-o|--output ]
] [--] []
```
Examples:
```shell
$ echo "h1. Textile markup" | vendor/bin/textile
$ vendor/bin/textile -o path/to/README.html path/to/README.textile
$ vendor/bin/textile --help
```
Development
-----
See [CONTRIBUTING.md](https://github.com/gocom/php-textile-cli/blob/master/CONTRIBUTING.md).