PHPackages                             envor/one-app - 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. [Database &amp; ORM](/categories/database)
4. /
5. envor/one-app

ActiveLibrary[Database &amp; ORM](/categories/database)

envor/one-app
=============

Database per team starter kit for Laravel based on Laravel Jetstream and Livewire

v1.0.32(1y ago)23.6k—0%1[1 PRs](https://github.com/envor/one-app/pulls)MITPHPPHP ^8.2CI passing

Since Feb 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/envor/one-app)[ Packagist](https://packagist.org/packages/envor/one-app)[ Docs](https://github.com/envor/one-app)[ RSS](/packages/envor-one-app/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (23)Versions (36)Used By (0)

There is this one-app ...
=========================

[](#there-is-this-one-app-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/86b260a387d1b7ea5b2e3377fe9ec417a07d314e023603a3c73009d528927890/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e766f722f6f6e652d6170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/one-app)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bdead7fc78ffaf8491830b184299ca596f33c13cef6bc7bbefc51e742ff9907c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f6f6e652d6170702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/envor/one-app/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8585badc91edc26489d6ba0c4aa67697f63d872b3e6ab98fc30ac0e5508483a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e766f722f6f6e652d6170702f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/envor/one-app/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1fd8d84a281801f66ed93f2b583fcd5189d6113a1b304f91c91690729d08aa39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e766f722f6f6e652d6170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/envor/one-app)

Database per team starter kit for Laravel based on Laravel Jetstream and Livewire

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

[](#installation)

First set up a fresh laravel app:

### Using laravel installer

[](#using-laravel-installer)

```
laravel new one-app
```

### Or using composer

[](#or-using-composer)

```
composer create-project "laravel/laravel:^11.0" one-app
```

```
cd one-app
```

Then you can install the package via composer:

```
composer require envor/one-app
```

```
php artisan one-app:install
```

To Configure your platform database (aka `central` or `landlord` database, etc..)

Add the following key to your `.env` file:

```
PLATFORM_DB_CONNECTION=sqlite
```

Note

If you use a connection other than sqlite, you will have to ensure you have configured you credentials for the connection

Next, freshen your migrations, using the `database/migration/platform` path, and the name of your `PLATFORM_DB_CONNECTION`

```
php artisan migrate:fresh --path=database/migrations/platform --database=sqlite
```

You can now test your application to ensure everything is working properly!

```
php artisan test
```

SSO (Optional)
--------------

[](#sso-optional)

If you need it you can set up `one-app` to use `laravel/passport` instead of `laravel/sanctum` which will include a full OAuth2 Server, complete with self-service token and client management ui.

First follow the steps above to install one-app.

Next install headerx/laravel-jetstream-passport

```
composer require headerx/laravel-jetstream-passport:^1.0
```

Important

Do not run the `jetstream-passport:install` command from [headerx/laravel-jetstream-passport](https://github.com/headerx/laravel-jetstream-passport) when setting up `one-app`! `one-app` has its own command for installing `passport` (shown below).

Then run `one-app:passport` command

```
php artisan one-app:passport
```

Then run migrations

```
php artisan migrate --path="database/migrations/platform" --database="sqlite"
```

Then run tests again!

Testing
-------

[](#testing)

```
php artisan test
```

or

```
composer test
```

Development
-----------

[](#development)

This thing installs stuff. During development the stubs will have to be tested. What follows are instructions for doing so.

requirements:

- php ^8.2
    - extensions
        - see
- composer
- basic working knowledge of git

### 1. Setup Laravel Environment in an empty directory

[](#1-setup-laravel-environment-in-an-empty-directory)

```
composer create-project laravel/laravel:11.x-dev .
composer require laravel/jetstream:@dev --no-interaction --no-update
composer require envor/one-app:@dev --no-interaction --no-update
composer config repositories.one-app '{"type": "path", "url": "one-app"}' --file composer.json
```

```
echo "PLATFORM_DB_CONNECTION=sqlite" >> .env
```

```
echo "one-app/" >> .gitignore
```

```
git add . && git commit -m "setup testing environment"
```

### 2. Clone the repo

[](#2-clone-the-repo)

SSH

```
git clone git@github.com:envor/one-app.git
```

HTTPS

```
git clone https://github.com/envor/one-app.git
```

### 3. Install dependencies (in root working directory, not one-app)

[](#3-install-dependencies-in-root-working-directory-not-one-app)

```
composer update "laravel/jetstream" --prefer-dist --no-interaction --no-progress -W
```

### 4. Install one-app (in root working directory, not one-app)

[](#4-install-one-app-in-root-working-directory-not-one-app)

```
composer update "envor/one-app" --prefer-dist --no-interaction --no-progress -W
```

```
php artisan one-app:install -v
```

### 5. Install npm dependencies (in root working directory, not one-app)

[](#5-install-npm-dependencies-in-root-working-directory-not-one-app)

```
npm install
```

### 6. Compile Assets (in root working directory, not one-app)

[](#6-compile-assets-in-root-working-directory-not-one-app)

```
npm run build
```

### 7. Execute tests (in root working directory, not one-app)

[](#7-execute-tests-in-root-working-directory-not-one-app)

```
php artisan test
```

### 8. If you are green, you are good to go. You can now reset your environment to begin making changes.

[](#8-if-you-are-green-you-are-good-to-go-you-can-now-reset-your-environment-to-begin-making-changes)

```
git reset --hard && git clean -df
```

```
composer install
```

### 9. Make your changes

[](#9-make-your-changes)

Edit files in `one-app/` directory

### 10. Test your changes by repeating steps 3-7.

[](#10-test-your-changes-by-repeating-steps-3-7)

### 11. Repeat steps 8-10

[](#11-repeat-steps-8-10)

### 12. Repeat step 11 as many times as needed.

[](#12-repeat-step-11-as-many-times-as-needed)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [inmanturbo](https://github.com/envor)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 95.4% 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.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~40 days

Total

34

Last Release

515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0261babef618b8fb3bfcea84376ed5e71e7169586eb8de63a6550c2e7ea653a6?d=identicon)[inmanturbo](/maintainers/inmanturbo)

---

Top Contributors

[![inmanturbo](https://avatars.githubusercontent.com/u/47095624?v=4)](https://github.com/inmanturbo "inmanturbo (185 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![imanghafoori1](https://avatars.githubusercontent.com/u/6961695?v=4)](https://github.com/imanghafoori1 "imanghafoori1 (1 commits)")

---

Tags

databaseframeworklaravelmysqloauth2oauth2-serversqlitessostarter-kitteamslaravelenvorone-app

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/envor-one-app/health.svg)

```
[![Health](https://phpackages.com/badges/envor-one-app/health.svg)](https://phpackages.com/packages/envor-one-app)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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