PHP code example of jakub-the-developer / php-frame
1. Go to this page and download the library: Download jakub-the-developer/php-frame library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$configuration = new \JakubTheDeveloper\PhpFrame\FrameConfiguration(
1, // top margin lines
3, // bottom margin lines
26, // margin left
26, // margin right
'+', // top-left corner symbol
'+', // top-right corner symbol
'+', // top-left corner symbol
'+', // top-left corner symbol
'~', // horizontal border symbol
'|' // vertical border symbol
);
$frame = new \JakubTheDeveloper\PhpFrame\Frame(
[
"First, longer line of the text",
"Second line",
"And the third",
],
$configuration
);
shell
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.