Coder Social home page Coder Social logo

php-tui's Introduction

PHP TUI

CI

         █████ 
     ████████████████████      
   █████████████████████████   
  █████ ███████████████████████   
  █████████████████████████████████
  █████████████████████████████   ██
  ███  ████████████████████████
  ███  ███████████████████████ 
  ███  ███████████████████████ 
  ███  ████ ████  ████  ██████ 

PHP TUI library heavily inspired by Rust TUI / Ratatui.

screenshot

Features

  • Many core features from Ratatui.
  • Advanced terminal control heavily inspired by Rust's crossterm library.
  • Font rendering
  • Layout control using the Cassowary algorithm via. php-tui cassowary

Documentation

Read the documentation here.

Demo

Checkout the project and run:

./example/demo/bin/demo

Screenshots

elephants starfield

Page from the PHP-TUI demo showing a scaled, scrolling text on a canvas with elephants on a starfield (framerate reduced for GIF)

image

Image rendering via. image magick

image

Colors demo

Widgets

  • Canvas
  • Chart
  • Block
  • Paragraph
  • List
  • Table
  • Tabs
  • Calendar
  • Barchart
  • Scrollbar
  • Sparkline
  • Gauge

Limitations

  • Windows support: shouldn't be hard to implement, but I don't have windows so...

TODO

  • Grapheme support
  • Cursor positioning after after draw (removed "frame" concept)
  • Change modifiers to use bitmask
  • Layout SegmentSize
  • Chart legend

php-tui's People

Contributors

dantleech avatar

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.