PHP Classes

PHP4Console: Render text and shapes in a terminal console

Recommend this page to a friend!
  Info   View files View files (296)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 days ago) RSS 2.0 feedNot enough user ratingsTotal: 157 This week: 2All time: 8,980 This week: 220Up
Version License PHP version Categories
php4console 1.10GNU General Publi...5.0PHP 5, Console
Description 

Author

This class can render text and shapes in a terminal console.

It can perform several types of operations to present information on a text console. Currently it can:

- Render a text paragraph with a given width and alignment
- Render a box of text with a given title, width and alignment
- Render a table of text from given data and with a given title
- Render a progress bar
- Prompt the user to enter some text

Picture of Everton da Rosa
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Details

README file Php4Console Versão 1.1 Php4Console é uma classe para facilitar a utilização do PHP em modo texto (CLI). Para utilizá-la, você precisa apenas do PHP CLI funcionando (Se nãos abe o que é isso, leia o manual do PHP). Você vai precisar de um servidor web com suporte ao PHP (Apache, por exemplo) apenas para ler a documentação da classe gerada pelo Phpdocumentor. Para isso, acesse o diretório doc pelo navegador. Se preferir, leia os comentários nos arquivos. Nele está toda a documentação do projeto. Para usar o Php4Console, faça um include() do arquivo php4console.class.php e crie uma instância da classe Php4Console. O arquivo text4shell.class.php serve apenas para matner a compatibilidade do seu código com a versão 1.0, chamada Text4Shell. Se você não está migrando, não vai precissar desse arquivo. Para testar exemplos, execute exemplo.bat e siga as instruções (desculpe, não criei um shell-script para Linux pois não tenho Linux instalado. Se você quiser utilizar esta classe no Linux, não se preocupe, ela funciona sim.).

  Files folder image Files  
File Role Description
Files folder imagedoc (15 files, 10 directories)
Files folder imageexemplos (5 files)
Accessible without login Plain text file CHANGELOG Data Auxiliary data
Accessible without login Plain text file exemplos.bat Data Auxiliary data
Accessible without login Plain text file exemplos.php Aux. Example script
Accessible without login Plain text file gpl-3.0.txt Lic. License text
Plain text file php4console.class.php Class Class source
Accessible without login Plain text file phpdoc.bat Data Auxiliary data
Accessible without login Plain text file phpdoc.xml Data Auxiliary data
Accessible without login Plain text file README Data Auxiliary data
Accessible without login Plain text file teste.php Example Example script
Plain text file text4shell.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:157
This week:2
All time:8,980
This week:220Up