Skip to content

kevin-coyle/turbophp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  _____         _           ____  _   _ ____
 |_   _|   _ __| |__   ___ |  _ \| | | |  _ \
   | || | | |  __| '_ \ / _ \| |_) | |_| | |_) |
   | || |_| | |  | |_) | (_) |  __/|  _  |  __/
   |_| \__,_|_|  |_.__/ \___/|_|   |_| |_|_|

        A TurboPascal-style IDE for PHP

TurboPHP

A retro TurboPascal/QBasic-style terminal IDE for writing, running, and formatting PHP code. Built with Rust using the ratatui TUI framework.

Features

  • Classic DOS blue interface with authentic color palette
  • Full-featured text editor with undo/redo
  • PHP syntax highlighting
  • Run PHP scripts directly (F9)
  • Format code with php-cs-fixer (Alt+F9)
  • Menu bar with keyboard navigation
  • File open/save dialogs
  • Find functionality
  • Split-panel output display
  • Free Reversi

Installation

Prerequisites

  • Rust 1.70+ (for building)
  • PHP CLI (for running scripts)
  • php-cs-fixer (optional, for code formatting)

Build from Source

git clone https://github.com/yourusername/turbophp.git
cd turbophp
cargo build --release

The binary will be at ./target/release/turbophp

Install php-cs-fixer (Optional)

composer global require friendsofphp/php-cs-fixer

Usage

# Start with empty file
turbophp

# Open existing file
turbophp myfile.php

Keyboard Shortcuts

Function Keys

Key Action
F1 Help
F2 Save file
F3 Open file
F9 Run PHP script
F10 Open menu
Alt+F9 Format code
Alt+X Exit

Editor Shortcuts

Key Action
Ctrl+N New file
Ctrl+O Open file
Ctrl+S Save file
Ctrl+Z Undo
Ctrl+Y Redo
Ctrl+X Cut
Ctrl+C Copy
Ctrl+V Paste
Ctrl+A Select all
Ctrl+F Find

Navigation

Key Action
Arrow keys Move cursor / Navigate menus
Enter Select menu item
Esc Close menu/dialog/output
Page Up/Down Scroll output

Screenshot

TurboPHP Screenshot

Configuration

TurboPHP stores its configuration in ~/.config/turbophp/config.toml:

php_path = "php"
php_cs_fixer_path = "php-cs-fixer"
tab_size = 4
use_spaces = true

Dependencies

Why TurboPHP?

Why not?

License

MIT License - See LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.


"In the beginning, there was blue. And it was good."

About

A turbopascal or QBasic style editor for PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages