PHPackages                             2wee/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. 2wee/laravel

ActiveLibrary[Framework](/categories/framework)

2wee/laravel
============

Laravel SDK for the 2wee terminal UI protocol

067↑2631.3%PHP

Since Mar 22Pushed 1mo agoCompare

[ Source](https://github.com/2wee-dev/laravel)[ Packagist](https://packagist.org/packages/2wee/laravel)[ RSS](/packages/2wee-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

2Wee for Laravel
================

[](#2wee-for-laravel)

A Laravel plugin that exposes your application's data to [2Wee](https://2wee.dev) TUI clients. Define resources — each one maps an Eloquent model to a set of screens — and the plugin handles routing, authentication, and the protocol.

Installation
------------

[](#installation)

```
composer require 2wee/laravel
php artisan 2wee:install
php artisan migrate
```

Create a resource
-----------------

[](#create-a-resource)

```
php artisan 2wee:resource CustomerResource --model=Customer
```

Edit the generated file in `app/TwoWee/Resources/CustomerResource.php` to define your fields and columns, then connect any 2Wee client to:

```
https://your-app.example.com/terminal

```

Web terminal (optional)
-----------------------

[](#web-terminal-optional)

Embed a browser-based terminal directly in your app — no client installation required:

```
php artisan 2wee:install-terminal
php artisan 2wee:start-terminal
```

Add to any Blade view:

```

```

Set `TWOWEE_QUIT_URL` in your `.env` to redirect users when they exit the terminal:

```
TWOWEE_QUIT_URL=https://your-app.example.com
```

Artisan commands
----------------

[](#artisan-commands)

CommandDescription`2wee:install`Publish config and scaffold resources directory`2wee:resource`Generate a new resource class`2wee:lookup`Generate a reusable lookup class`2wee:action`Generate a screen action class`2wee:install-terminal`Download web terminal binaries`2wee:start-terminal`Start the web terminal service`2wee:stop-terminal`Stop the web terminal service`2wee:check-terminal`Show terminal service statusDocumentation
-------------

[](#documentation)

Full documentation at [2wee.dev](https://2wee.dev/laravel/getting-started).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance63

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3409eebf1fda9ec9cb13342e20094a561ff59b262c75686cab36c74fc1503097?d=identicon)[mashema](/maintainers/mashema)

---

Top Contributors

[![mashema](https://avatars.githubusercontent.com/u/2392231?v=4)](https://github.com/mashema "mashema (20 commits)")

### Embed Badge

![Health badge](/badges/2wee-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/2wee-laravel/health.svg)](https://phpackages.com/packages/2wee-laravel)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M119](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
