Skip to content

terremoth/php-box-designer

Repository files navigation

PHP Box Designer

Boxes. There are Boxes. Everywhere.

Simple app that draws boxes using chars with or without text content inside.
This repo main idea is to demonstrate the high state of the art a PHP repo can be.

CodeCov Psalm type coverage Psalm level Test Run Status Codacy Badge Code Climate Maintainability License

See demos/drawing.php for examples.

Installation

  • Clone this repo:
  • $ git clone https://github.com/terremoth/php-box-designer.git
  • $ cd php-box-designer
  • $ composer install

What it looks like?

$ php demos/drawing.php
┌─┐
│ │
└─┘
┏━━━━━┓
┃╔═══╗┃
┃║┌─┐║┃
┃║│ │║┃
┃║└─┘║┃
┃╚═══╝┃
┗━━━━━┛
*--------*
|        |
|        |
|        |
*--------*
┌──────────┐
│          │
└──────────┘
┌────────┐
│John Doe│
│ Lorem I│
│psum Dol│
└────────┘
┌────────────────┐
│by terremoth    │
│and friends     │
└────────────────┘
╔════╗
║┌──┐║
║│  │║
║│  │║
║└──┘║
╚════╝