2017 © Pedro Peláez
 

library tuicha

image

tuicha/tuicha

  • Thursday, August 2, 2018
  • by crodas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 200 % Grown

The README.md

Tuicha

Simple ORM for MongoDB (PHP and HHVM)., (*1)

Installing

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

Tuicha can be installed with composer., (*3)

composer require tuicha/tuicha:dev-develop

Getting started

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

Creating a conection

Tuicha::addConnection("tuicha_testsuite");

By default all conections to localhost, (*5)

If the MongoDB server is running in another machine it must be specified in the second argument., (*6)

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

Defining models

Basic definition

Any object which uses the Tuicha\Document trait can be stored in MongoDB with Tuicha., (*7)

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., (*8)

TODO

  1. Write more documentation
  2. Add events support.

The Versions

02/08 2018

dev-develop

dev-develop

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

02/07 2018

dev-feature/split-metadata-object

dev-feature/split-metadata-object

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

24/04 2018

dev-feature/scopes

dev-feature/scopes

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

17/04 2018

dev-feature/single-collection-inheritance

dev-feature/single-collection-inheritance

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

06/03 2018

dev-travis-config

dev-travis-config

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

21/02 2018

dev-feature/fluent-interface

dev-feature/fluent-interface

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas

26/05 2017

dev-feature/events

dev-feature/events

  Sources   Download

The Requires

 

The Development Requires

by Cesar Rodas