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

068↓90%PHP

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/2wee-dev/laravel)[ Packagist](https://packagist.org/packages/2wee/laravel)[ RSS](/packages/2wee-laravel/feed)WikiDiscussions main Synced 3w 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

21

—

LowBetter than 18% of packages

Maintenance55

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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://avatars.githubusercontent.com/u/2392231?v=4)[John Eyðstein Johannesen ](/maintainers/mashema)[@mashema](https://github.com/mashema)

---

Top Contributors

[![mashema](https://avatars.githubusercontent.com/u/2392231?v=4)](https://github.com/mashema "mashema (22 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/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M829](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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