williamsantana / tableforshell
Print HTML tables (and so on) on shell enviroments
Requires
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-05-26 04:10:12 UTC
README
Class for printing HTML tables in command prompt (shell, bash, cmd, etc).
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
What things you need to install the software and how to install them
PHP ^5.3
Installing
Via Composer
curl -s http://getcomposer.org/installer | php
php composer.phar require williamsantana/tableforshell
Via GitHub Clone or download the package
https://github.com/WilliamSantAna/TableForShell.git
Usage
With hands-on a HTML Table you can do something like this:
$htmlString = file_get_contents('some-html-table.html');
$TableForShell = new TableForShell();
$TableForShell->tableHTMLToShell($htmlString);
Via shell you can run by simply:
php
Running the tests
This package can be tested using PHPUnit
Just run below code in your enviroment. But, don't worry. I promise to make it functional.
vendor\bin\phpunit
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- William SantAna - Initial work - WilliamSantAna
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details