Zend\Text is a component to work on text strings from Zend Framework

Overview

zend-text

Repository abandoned 2019-12-31

This repository has moved to laminas/laminas-text.

Build Status Coverage Status

Zend\Text is a component to work on text strings. It contains the subcomponents:

  • Zend\Text\Figlet that enables developers to create a so called FIGlet text. A FIGlet text is a string, which is represented as ASCII art. FIGlets use a special font format, called FLT (FigLet Font). By default, one standard font is shipped with Zend\Text\Figlet, but you can download additional fonts here
  • Zend\Text\Table to create text based tables on the fly with different decorators. This can be helpful, if you either want to send structured data in text emails, which are used to have mono-spaced fonts, or to display table information in a CLI application. Zend\Text\Table supports multi-line columns, colspan and align as well.

Installation

Run the following to install this library:

$ composer require zendframework/zend-text

Documentation

Browse the documentation online at https://docs.zendframework.com/zend-text/

Support

Comments
  • Test to demonstrate invalid Plugin Manager configuration

    Test to demonstrate invalid Plugin Manager configuration

    @weierophinney I think in many components we do have invalid Plugin Manager configuration - see:

    https://github.com/zendframework/zend-text/blob/master/src/Table/DecoratorManager.php#L42-L44

    and test I have added in this PR.

    I believe these aliases should be added into $aliases property.

    In the current state these "aliases" are not usable.

    opened by michalbundyra 3
  • Support for PHP 7.4

    Support for PHP 7.4

    I have a Laravel Zero based project which using an ASCII logo feature depends on this library, and it turns out it breaks on PHP 7.4.

    We get the error: Invalid characters passed for attempted conversion, these have been ignored at https://github.com/zendframework/zend-text/blob/master/src/Figlet/Figlet.php#L1091

    Will take a look later in the exact issue and try fixing, for now I just stopped using this feature which was cosmetic only, so I figured would throw this in here in case someone else finds this.

    opened by fabriciojs 1
  • Updated factories, reverted validatePlugin for v2-v3 compat

    Updated factories, reverted validatePlugin for v2-v3 compat

    Depends on: https://github.com/zendframework/zend-servicemanager/pull/91 https://github.com/zendframework/zend-servicemanager/pull/92 https://github.com/zendframework/zend-servicemanager/pull/93 (for test)

    enhancement 
    opened by kynx 1
  • Provide support for PHP 7.2

    Provide support for PHP 7.2

    We need to test against 7.2, and fix any errors observed.

    Additionally, we can:

    • Remove support for HHVM
    • Add support for PHP 7.1
    • Remove support for PHP 5.5.
    help wanted 
    opened by weierophinney 0
  • Updated to php-coveralls/php-coveralls

    Updated to php-coveralls/php-coveralls

    With version 2 package has been renamed from satooshi/php-coveralls to php-coveralls/php-coveralls, and the script has been renamed from coveralls to php-coveralls

    opened by michalbundyra 0
  • Prepare documentation for publication

    Prepare documentation for publication

    • Checked all headers (Fixes #4)
    • Checked all code blocks (Fixes #5)
    • Checked all blockquotes (Fixes #8)
    • Checked for tables (none) (Fixes #7)
    • Checked for content, and for figlet representation (Fixes #6)
    • Updated to use mkdocs
      • added HTML landing page to swap in
    • Adds build automation tooling to travis configuration

    I've also updated the patch to ensure that all PHP targets have builds against both v2 and v3 of zend-servicemanager; previously, PHP 5.5 and 5.6 were testing against v2, and PHP 7 and HHVM were testing against v3.

    documentation 
    opened by weierophinney 0
  • Check For Blockquotes In Docs

    Check For Blockquotes In Docs

    Check the document for bad blockquoutes

    TLDR; Check blockquotes are formatted correctly using > and check headings in blockquotes are using ###

    Blockquotes are donated by a single greater than character and then a space. Make sure all the blockquotes in every doc file are correctly formatted. Headings in blockquotes should use ### and not bold.

    Any paragraph spacing in blockquotes should be marked using a single greater than, then a space.

    EasyFix documentation 
    opened by GeeH 0
  • Check Documentation Tables

    Check Documentation Tables

    Check the tables in a document

    TLDR; All tables should be in the format of GHFM using | and - as horizontal and vertical separators respectively

    Check all tables are in the correct format. Please don't use leading and trailing | - more information on github flavoured markdown tables can be found here.

    EasyFix documentation 
    opened by GeeH 0
  • Check Documentation For Other Things

    Check Documentation For Other Things

    Check docs for other problems

    TLDR; Cast your eye over the documetation for any problems not covered in the other issues

    Things slip through the net, so check the documentation for other problems that have been missed. Common other problems include

    • Bullet lists (should be single * then space at the start of line)
    • Inline code - should be marked by three backticks at start and finish
    • bookdown.json file is correctly formated and has the right escaping
    • Links between documentation using RST have been stripped
    • Any other RST has been removed correctly
    • Anything and everything not covered

    If you end up fixing the same problem over and over, please ping Gary Hockin - we may be able to add bespoke issue for that problem, or fix in automated capacity

    EasyFix documentation 
    opened by GeeH 0
  • Check Documentation Code Blocks

    Check Documentation Code Blocks

    Check code blocks are correct

    TLDR; Check in all files that codeblocks are correct, in PSR-2 format and have PHP syntax highlighting applied.

    Code blocks should be in the following format...

    ```php
     'ZEND-FRAMEWORK');
    
    // No required options
    $rendererOptions = array();
    $renderer = Barcode::factory(
        'code39', 'image', $barcodeOptions, $rendererOptions
    );
    
    ```
    

    Note the three backticks then php in the opening fence, and the closing fence is just three backticks. It's common for the opening backticks to have no code type, or something like source.

    Code should also have been automatically formatted into PSR-2 format, but sometimes these slip through the net.

    EasyFix documentation 
    opened by GeeH 0
  • Check All Headers In Documentation

    Check All Headers In Documentation

    Check headers are correct

    TLDR; Headers should use the #, ## etc to format different levels of headers, and not be underlines using ===== or ``-----`, or be psuedo header using bold

    Check all headers on the documentation - headers should use the hash style of declaration rather then be underlined with equals or dashes. The more hashes, the more of a subheading. Eg:

    • # is equal to <h1>
    • ## is equal to <h2>
    • ### is equal to <h3>
    • #### is equal to <h4>
    • ##### is equal to <h5>

    Headings should be appropriate for their level in the documentation.

    Psuedo headers using bold tags ** should be replaced with appropriate level of heading tag.

    EasyFix documentation 
    opened by GeeH 0
Releases(release-2.7.1)
  • release-2.7.1(Oct 16, 2019)

  • release-2.7.0(Apr 30, 2018)

  • release-2.6.0(Feb 8, 2016)

    Added

    • #10 adds and publishes documentation; view it at https://zendframework.github.io/zend-text/

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • #2 and #9 update the component to be forwards-compatible with zend-servicemanager v3.
    Source code(tar.gz)
    Source code(zip)
Owner
Zend Framework
Zend Framework
Db component from Zend Framework

zend-db Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-db. Zend\Db is a component that abstract the access to a Database

Zend Framework 98 Sep 5, 2022
Debug component from Zend Framework

zend-debug Zend\Debug is a component that help the debugging of PHP applications. In particular it offers a static method Zend\Debug\Debug::dump() tha

Zend Framework 12 Jan 29, 2020
Navigation component from Zend Framework

zend-navigation Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-navigation. Zend\Navigation is a component for managing t

Zend Framework 19 Jun 30, 2021
Json component from Zend Framework

zend-json Repository abandoned 2019-12-31 This repository has moved to laminas/laminas-json. Zend\Json provides convenience methods for serializing na

Zend Framework 102 Nov 17, 2022
A panel created based on the Zend Framework MVC framework

?? Painel MyZap2.0 Com ZendFramework 3 Descrição Esse é um painel criado como estudo pessoal do framework (Zend Framework MVC) não foi criado para fin

Jonathan Henrique 9 Jun 10, 2022
A PHP Library To Make Your Work Work Easier/Faster

This Is A Php Library To Make Your Work Easier/Faster,

functionality 2 Dec 30, 2022
A PHP component to convert HTML into a plain text format

html2text html2text is a very simple script that uses DOM methods to convert HTML into a format similar to what would be rendered by a browser - perfe

Jevon Wright 423 Dec 29, 2022
zend-memory manages data in an environment with limited memory

Memory objects (memory containers) are generated by the memory manager, and transparently swapped/loaded when required.

Zend Framework 16 Aug 29, 2020
Decimal handling as value object instead of plain strings.

Decimal Object Decimal value object for PHP. Background When working with monetary values, normal data types like int or float are not suitable for ex

Spryker 16 Oct 24, 2022
Create executable strings using a fluent API.

command-builder A PHP class to build executable with using fluent API. Summary About Features Installation Examples Compatibility table Tests About I

Khalyomede 2 Jan 26, 2022
A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc). Based on the difflib implementation in Python

PHP Diff Class Introduction A comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences

Chris Boulton 708 Dec 25, 2022
Shortest Path - have a function ShortestPath (strArr) take strArr which will be an array of strings which models a non-looping Graph.

Have the function ShortestPath(strArr) take strArr which will be an array of strings which models a non-looping Graph

null 1 Feb 5, 2022
ICSGenerator - The module can generate basic ICS calendar strings and files

ICSGenerator The module can generate basic ICS calendar strings and files. The module simply extends WireData. It has these properties and default val

Timo Hausmann 4 Jun 25, 2022
PHP Japanese string helper functions for converting Japanese strings from full-width to half-width and reverse. Laravel Rule for validation Japanese string only full-width or only half-width.

Japanese String Helpers PHP Japanese string helper functions for converting Japanese strings from full-width to half-width and reverse. Laravel Rule f

Deha 54 Mar 22, 2022
PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.

forceutf8 PHP Class Encoding featuring popular \ForceUTF8\Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strin

Sebastián Grignoli 1.6k Dec 22, 2022
Parse DSN strings into value objects to make them easier to use, pass around and manipulate

DSN parser Parse DSN strings into value objects to make them easier to use, pass around and manipulate. Install Via Composer composer require nyholm/d

Tobias Nyholm 77 Dec 13, 2022
Strings Package provide a fluent, object-oriented interface for working with multibyte string

Strings Package provide a fluent, object-oriented interface for working with multibyte string, allowing you to chain multiple string operations together using a more readable syntax compared to traditional PHP strings functions.

Glowy PHP 14 Mar 12, 2022
Replace, concat strings or change number fields permanently using Grid Options

It's Pimcore Bundle to replace ,concat strings or change number fields permanently using Grid Options. It will save replaced strings directly in object.

LemonMind.com 5 Aug 31, 2022
PHP class for parsing user agent strings (HTTP_USER_AGENT).

PHP class for parsing user agent strings (HTTP_USER_AGENT). Includes mobile checks, bots and banned bots checks, browser types/versions and more. Based on browscap (via phpbrowscap), Mobile_Detect and ua-parser. Created for high traffic websites and fast batch processing.

Mikolaj Misiurewicz 44 Jul 26, 2022