{"id":35362201,"url":"https://github.com/luminarix/laravel-web-tinker-pro","last_synced_at":"2026-01-02T01:00:28.556Z","repository":{"id":309191421,"uuid":"1034779521","full_name":"luminarix/laravel-web-tinker-pro","owner":"luminarix","description":"Minimal PHP tinker, redesigned.","archived":false,"fork":false,"pushed_at":"2025-08-13T05:29:22.000Z","size":2365,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T09:23:00.240Z","etag":null,"topics":["browser","code","execution","laravel","monaco","php","react","rsbuild","spatie","tinker","typescript","webtinker"],"latest_commit_sha":null,"homepage":"https://github.com/luminarix/laravel-web-tinker-pro","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luminarix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"luminarix"}},"created_at":"2025-08-09T01:16:11.000Z","updated_at":"2025-08-13T05:29:24.000Z","dependencies_parsed_at":"2025-08-13T19:16:38.680Z","dependency_job_id":null,"html_url":"https://github.com/luminarix/laravel-web-tinker-pro","commit_stats":null,"previous_names":["luminarix/laravel-web-tinker-pro"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/luminarix/laravel-web-tinker-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminarix%2Flaravel-web-tinker-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminarix%2Flaravel-web-tinker-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminarix%2Flaravel-web-tinker-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminarix%2Flaravel-web-tinker-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luminarix","download_url":"https://codeload.github.com/luminarix/laravel-web-tinker-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminarix%2Flaravel-web-tinker-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28166493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-01T02:00:06.694Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","code","execution","laravel","monaco","php","react","rsbuild","spatie","tinker","typescript","webtinker"],"created_at":"2026-01-02T01:00:10.075Z","updated_at":"2026-01-02T01:00:28.538Z","avatar_url":"https://github.com/luminarix.png","language":"TypeScript","funding_links":["https://github.com/sponsors/luminarix"],"categories":[],"sub_categories":[],"readme":"# 🚀 Laravel Web Tinker Pro\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/luminarix/laravel-web-tinker-pro.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-web-tinker-pro)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-web-tinker-pro/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/luminarix/laravel-web-tinker-pro/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-web-tinker-pro/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/luminarix/laravel-web-tinker-pro/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/luminarix/laravel-web-tinker-pro.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-web-tinker-pro)\n\n\u003e **Minimal PHP tinker, redesigned.** A modern, feature-rich web-based PHP code execution environment built with React\n\u003e 19, TypeScript, and Monaco Editor.\n\nLaravel Web Tinker Pro transforms the traditional command-line PHP tinker experience into a powerful, browser-based IDE.\nExecute PHP code instantly, manage multiple sessions with advanced tabbing, and enjoy a seamless development workflow\nwith intelligent code completion, syntax highlighting, and execution history.\n\n---\n\n## ✨ Features at a Glance\n\n### 🎯 **Core Functionality**\n\n- **Instant PHP Execution**: Run PHP code directly in your browser with real-time output\n- **Multi-Tab Management**: Work with multiple code snippets simultaneously with smart tab overflow handling\n- **REPL Mode**: Persistent execution state across multiple code runs\n- **Execution History**: Track, pin, and compare your code executions with detailed metadata\n\n### 🎨 **Modern User Experience**\n\n- **Monaco Editor Integration**: Full-featured code editor with PHP syntax highlighting and autocompletion\n- **Dual Theme Support**: Light and dark themes with optional background patterns\n- **Responsive Design**: Optimized for desktop and mobile devices\n- **Smart Split View**: Resizable code editor and output panels\n\n### 🔧 **Advanced Tab Management**\n\n- **Drag \u0026 Drop Reordering**: Organize tabs with intuitive drag-and-drop\n- **Tab Actions**: Pin, lock, duplicate, and search functionality\n- **Overflow Management**: Smart tab overflow with searchable dropdown\n- **Tab List Modal**: Full-screen tab management with filtering\n- **Keyboard Shortcuts**: Cmd/Ctrl+Enter to execute code instantly\n- **AI content summary (BYOK)**: Generate AI summaries for code snippets with a single click (work in progress)\n\n### 📊 **Intelligent Output Handling**\n\n- **HTML Output Detection**: Automatic detection and safe rendering of HTML content\n- **Execution Metrics**: Runtime, memory usage, and output size tracking\n- **Output Copying**: One-click copy functionality for all outputs\n\n### 🔄 **State Management**\n\n- **Persistent Storage**: Automatic saving of tabs, themes, and preferences\n- **Code Sharing**: Generate shareable URLs for code snippets (work in progress)\n- **Session Recovery**: Restore your work exactly where you left off\n\n---\n\n## 🎮 Frontend Features Deep Dive\n\n### 🗂 **Advanced Tab System**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eMulti-Tab Management\u003c/strong\u003e\u003c/summary\u003e\n\nOur sophisticated tab system supports:\n\n- **Dynamic Tab Creation**: Add unlimited tabs for different code snippets\n- **Smart Naming**: Auto-generated names with manual renaming support (50 char limit)\n- **Tab States**: Active, pinned, and locked states for better organization\n- **Overflow Handling**: Smart tab overflow with searchable dropdown when space is limited\n- **Tab Actions**: Full CRUD operations with intuitive UI controls\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eDrag \u0026 Drop Support\u003c/strong\u003e\u003c/summary\u003e\n\nBuilt with `@dnd-kit/core` for:\n\n- **Tab Reordering**: Drag tabs to reorganize your workspace\n- **Visual Feedback**: Real-time drag indicators and hover states\n- **Lock Protection**: Locked tabs cannot be reordered and edited\n\n\u003c/details\u003e\n\n### 💻 **Monaco Editor Integration**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCustom PHP Language Support\u003c/strong\u003e\u003c/summary\u003e\n\n**PHP-Inline Language Definition**:\n\n- **Syntax Highlighting**: Full PHP tokenization without `\u003c?php` tags\n- **Code Completion**: 200+ built-in PHP functions with signatures\n- **Hover Documentation**: Instant function documentation and parameter info\n- **Signature Help**: Real-time parameter hints as you type\n\n**Editor Features:**\n\n- **Completion**: Smart code completion for PHP functions, constants, and keywords\n- **Bracket Matching**: Automatic bracket pair colorization and guides\n- **Minimap**: Code overview for easy navigation\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eOutput Rendering System\u003c/strong\u003e\u003c/summary\u003e\n\n- **HTML Detection**: Intelligent content type detection\n- **Safe Rendering**: DOMPurify integration for XSS protection\n- **Fallback Handling**: Plain text rendering for non-HTML content\n- **REPL Mode**: Multi-cell execution with persistent state\n- **Execution Stats**: Runtime, memory, and output size display\n- **History Integration**: Quick access to execution history\n- **Copy Functionality**: One-click output copying\n\n\u003c/details\u003e\n\n### 🎨 **Theme \u0026 Styling System**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eAdaptive Theming\u003c/strong\u003e\u003c/summary\u003e\n\n- **Dual Themes**: Light and dark mode with system preference detection\n- **Background Patterns**: Optional grid patterns for enhanced visual appeal\n-\n\n\u003c/details\u003e\n\n### 📱 **Responsive Design**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eMobile-First Architecture\u003c/strong\u003e\u003c/summary\u003e\n\n**Responsive Components:**\n\n- **Header.tsx**: Mobile hamburger menu with full desktop functionality\n- **TabManager.tsx**: Mobile-optimized tab display with overflow handling\n- **Split Panels**: Responsive layout that adapts to screen size\n- **Touch Support**: Full touch gesture support for mobile devices\n\n\u003c/details\u003e\n\n---\n\n## 🚀 Installation \u0026 Setup\n\n### Quick Start\n\n```bash\n# Install the package\ncomposer require luminarix/laravel-web-tinker-pro\n```\n\n### Then, publish the configuration and assets:\n\n```bash\n# Install the package\nphp artisan laravel-web-tinker-pro:install\n```\n\n### Default route and considerations\nBy default, the package will be available at `/tinker-pro`. You can change this by modifying the `web-tinker-pro.php` config file.\nBy default, the route will only be accessible from the local environment. You can override this behavior by creating your own Gate:\n\n```php\nGate::define('viewWebTinkerPro', function ($user = null) {\n    // Your custom logic here\n});\n```\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our contributing guidelines:\n\n1. **Fork** the repository\n2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)\n3. **Commit** your changes (`git commit -m 'Add amazing feature'`)\n4. **Push** to the branch (`git push origin feature/amazing-feature`)\n5. **Open** a Pull Request\n\n---\n\n## 📝 Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n---\n\n## 👥 Credits\n\n- [Luminarix Labs](https://github.com/luminarix)\n- [Spatie for the original Web Tinker](https://github.com/spatie/laravel-web-tinker)\n- [All Contributors](../../contributors)\n\n---\n\n## 📄 License\n\nLaravel Web Tinker Pro is open-sourced software licensed under the [MIT license](LICENSE.md).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Built with ❤️ by [Luminarix Labs](https://github.com/luminarix)**\n\n[⭐ Star this repo](https://github.com/luminarix/laravel-web-tinker-pro) • [🐛 Report Bug](https://github.com/luminarix/laravel-web-tinker-pro/issues) • [💡 Request Feature](https://github.com/luminarix/laravel-web-tinker-pro/issues)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminarix%2Flaravel-web-tinker-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluminarix%2Flaravel-web-tinker-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminarix%2Flaravel-web-tinker-pro/lists"}