PHPackages                             tuicha/tuicha - 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. tuicha/tuicha

ActiveLibrary

tuicha/tuicha
=============

v0.1.1(9y ago)1122[1 PRs](https://github.com/crodas/Tuicha/pulls)

Since Dec 20Compare

[ Source](https://github.com/crodas/Tuicha)[ Packagist](https://packagist.org/packages/tuicha/tuicha)[ RSS](/packages/tuicha-tuicha/feed)WikiDiscussions Synced today

READMEChangelogDependencies (4)Versions (7)Used By (0)

Tuicha
======

[](#tuicha)

Simple ORM for MongoDB (PHP and HHVM).

Installing
----------

[](#installing)

*This project is under heavy development, the APIs may change without any notice*.

Tuicha can be installed with [composer](https://getcomposer.org/).

```
composer require tuicha/tuicha:dev-develop

```

Getting started
---------------

[](#getting-started)

Tuicha is designed to be simple and friendly with every framework, that is why it uses and abuses with static methods.

### Creating a conection

[](#creating-a-conection)

```
Tuicha::addConnection("tuicha_testsuite");
```

*By default all conections to localhost*

If the MongoDB server is running in another machine it must be specified in the second argument.

```
Tuicha::addConnection("tuicha_testsuite", "mongodb://8.8.8.8:27017");
```

### Defining models

[](#defining-models)

#### Basic definition

[](#basic-definition)

Any object which uses the `Tuicha\Document` trait can be stored in MongoDB with Tuicha.

```
class Books {
  use Tuicha\Document;
}

$x = new Books;
$x->name = "foobar";
$x->save(); // save

var_dump($x->id); // Object ID
```

Any property (defined or not in the class definition) will be stored in MongoDB.

TODO
====

[](#todo)

1. Write more documentation
2. Add events support.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3479d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36463?v=4)[C](/maintainers/crodas)[@crodas](https://github.com/crodas)

---

Top Contributors

[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (31 commits)")

### Embed Badge

![Health badge](/badges/tuicha-tuicha/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.5k](/packages/laravel-framework)[doctrine/orm

Object-Relational-Mapper for PHP

10.2k295.3M7.2k](/packages/doctrine-orm)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M717](/packages/sylius-sylius)[illuminate/support

The Illuminate Support package.

582110.9M40.0k](/packages/illuminate-support)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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