Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to encapsulate strings - automatically puts rectangle around it! #11

Open
terremoth opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@terremoth
Copy link
Owner

something like:

<?php

use BoxDesigner\FilledBox; // this! or maybe only 
use BoxDesigner\PreBuilt\DarkerBorder;

$darkerBorder = new DarkerBorder();

$content = "Hello darkness\nmy old friend"; 

// it will calculate how many \n ares to estimate height and the longest line size to estimate width
$box = new FilledBox($content);
$box->draw($darkerBorder);
@terremoth terremoth added enhancement New feature or request good first issue Good for newcomers labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant