Download the PHP package fater/typography without Composer
On this page you can find all versions of the php package fater/typography. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fater/typography
More information about fater/typography
Files in fater/typography
Package typography
Short Description Simple way to make your text more typographer
License MIT
Informations about the package typography
Make your text tidier with PHP Typography
"Typography" is an open source PHP software that automatically can format your text. It can place spaces and correct mechanical errors in the text, replace characters and brackets. This software can be useful for people who are engaged in the production and formatting of texts for public purposes, such as web pages, promotional materials, presentations, resumes, news, public posts, etc.
Using the "Typography" allows you to significantly reduce the time for correcting and formatting the text, since the service automatically processes all the necessary actions. In addition, "Typography" guarantees high accuracy and quality of correction, which helps to avoid punctuation errors.
This can be especially useful for professional writers, journalists, advertisers and other people whose work is related to text content.
Table Of Contents
- Requirements
- Installation
- Usage
- Roadmap
- Changelog
- License
Requirements
- PHP 8.0 or higher
Installation
Install with composer:
Usage Examples
To run "Typography" with default formatting rules use this code example:
Create your own formatting rule
If you want to make special formatting rules you can make class from base rule template:
Add your rule to default formatting rules
Add your rule to the list of handlers to use it:
if you want to use only your rule
At the beginning clear all rules list, add your rule to the list of handlers to use it:
The above example will output:
Roadmap
v. 1.x
- Space:
- [x] Add space after comma
- [x] Add space after dot (ignore domains) TODO: emails/IP
- [x] Remove space before punctuation (.,:;?!)
- [x] Remove space in each paragraph
- [ ] Remove redundant line breaks
- Characters:
- [x] Replace special characters (c), (r), (tm), +-, ..., <-, ->
- [x] Replace dash
- [X] First letter in uppercase
v. 2.x
Supports of formatting plain text and HTML code
Changelog
Read Changelog in releases list to know all product changes.
License
License MIT, see more details in LICENSE