Giter Club home page Giter Club logo

thermage's Introduction

Thermage


License MIT Total downloads GitHub Repo stars GitHub forks Hits of Code


Thermage provides a fluent and incredibly powerful object-oriented interface for customizing CLI output text color, background, formatting, theming and more.

Features

  • Consistent colors
    Thermage uses the ANSI color scheme which is widely used by terminals to ensure consistent colors in different terminal themes. If that’s not enough, Thermage can be used to access the full RGB color scheme (16+ million colors) in terminals that support TrueColor.

  • Component system
    Thermage consists of built-in components, called Elements, which can be used individually or together to generate pretty console output.

  • Theming
    Thermage provides ability to create and use custom themes to change the style of command line output with preconfigured themes variables.

  • Shortcodes
    Thermage provides incredible simple and powerful Shortcodes API to create and use shortcodes markup for customizing CLI output text color, background, formatting.

  • Framework agnostic
    Thermage can be used with any Modern PHP Framework: Symfony, Laravel, Yii, CakePHP, CodeIgniter, Phalcon and others.

Installation

composer require thermage/thermage

Resources

Tests

Run tests

./vendor/bin/pest

License

The MIT License (MIT) Copyright (c) Sergey Romanenko

thermage's People

Contributors

awilum avatar f3ath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

thermage's Issues

Add fractions for element width

We should able to set fractions for element width

Draft implementation:

if (preg_match('/(\d+)\/(\d+)/', (string) $widthStyle, $matches)) {
    $widthStyle = intval($matches[1] / $matches[2] * 100);
}

need to check this feature with all possible cases of element width and text alignments.

chart which can be updateble

Need to display program progress
While long program runs i want to display a progress with chart you have

Describe the solution you'd like
the chart to return some handle that can be updated with new chart percentage at later time

Add percentage for element width

We should able to set percentage for element width

Draft implementation:

if (preg_match('/^\d+(?:\.\d+)?%$/', (string) $widthStyle)) {
    $widthStyle = intval(($widthStyle / 100) * Terminal::getWidth());
}

need to check this feature with all possible cases of element width and text alignments.

Add emojies support

We should have emojies support for the element value.

With the current implementation of the box model calculations for value length with emojies are little bit wrong because some emojies length are more than 1 printed symbol.

Need to research this question and find the best solution of correct calculation for value length with emojies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.