PHPackages                             hiveclick/mojavi - 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. hiveclick/mojavi

ActiveLibrary[Framework](/categories/framework)

hiveclick/mojavi
================

Lightweight MVC Framework that works with MySQL, Postgres, and Mongo databases

5533PHP

Since Oct 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/hiveclick/mojavi)[ Packagist](https://packagist.org/packages/hiveclick/mojavi)[ RSS](/packages/hiveclick-mojavi/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Mojavi#
=========

[](#mojavi)

Mojavi MVC Framework for PHP 5. Mojavi was one of the first MVC frameworks made for PHP 5.3+ using an object oriented design. Though the original contributors have ceased development on it, many of it's concepts have made their way into current MVC frameworks, such as Symfony. This version contains several ported files from other branches like Agavi and Symfony. We've also finished some of the code stubs that were in the original version.

\##Additions##
==============

[](#additions)

We've added some additional components that do not exist in other Mojavi implementations. These are listed below.

\###\\Mojavi\\Util\\StringTools### String class used for general string manipulation. Contains functions to colorize text in a Linux terminal. Also functions to make strings safe for MySQL

```
\Mojavi\Util\StringTools::consolePrompt('Enter your username: ', 'john');
echo \Mojavi\Util\StringTools::consoleColor('There was an error', \Mojavi\Util\StringTools::CONSOLE_COLOR_RED);
\Mojavi\Util\StringTools::getStringBetween('Hello World', '', ''); // returns Hello World

```

\###\\Mojavi\\Logging\\LoggerManager### Easy to use logging class built from the Java Log Manager.

```
\Mojavi\Logging\LoggerManager::error(__METHOD__ . " :: About to run some code...");
\Mojavi\Logging\LoggerManager::debug(__METHOD__ . " :: Here is my query: " . $ps->getPreparedStatement());

```

\###\\Mojavi\\Form\\MongoForm### Simple to use forms that inherit mongo properties and work with the Mongo Database

```
class UserForm extends MongoForm {
	protected $username;

	function getUsername() { return $this->username }

	function setUsername($arg0) { $this->username = $arg0; return $this; }

	function queryByUsername() {
		return parent::query(array('username' => $this->getUsername()), false);
	}
}

$user_form = new UserForm();
$user_form->setUsername('john');
$user_form->query();

echo $user_form->getUsername();

```

\###\\Mojavi\\Form\\OrmForm### Simple to use action forms. An action form is a PHP class with getters and setters. It is usually built from the database columns, but could have additional getters/setters to accomodate parameters passed in via an HTML Form. It also can have helper functions with business logic.

```
$_GET['id'] = 1;
$user_form = new UserForm();
$user_form->populate($_GET);
$user_form->query();
if ($user_form->exists()) {
	echo $user_form->getUsername();
}

```

\###\\Mojavi\\Model\\BasicModel### Simple base class for models containing database queries. Defines basic functions for a CRUD implementation such as performQuery(), performQueryAll(), performCount(), performDelete, performInsert(), and performUpdate()

```
$user_form = new UserForm();
$user_form->populate($_GET);
$user_model = new UserModel();
$user_model->performInsert($user_form);

```

\###\\Mojavi\\Ps\\KeyBasedPreparedStatement### Robust Prepared Statement class that doesn't use PDO. You simply pass it a query with placeholders such as &lt;&gt; and then call functions for it.

```
function performQuery(Form $arg0) {
	/* @var $arg0 UserForm */
	$query = "SELECT * FROM user WHERE username = ";
	$ps = new KeyBasedPreparedStatement($query);
	$ps->setString("username", $arg0->getUsername());

	echo $ps->getPreparedStatement();
	// will return SELECT * FROM user WHERE username = 'tester'
}

```

\###\\Mojavi\\Util\\IntegerEncoder### Encodes ids as an 8 character id. For instance, id=1 becomes id=z8e7f4d0. Ids can be easily encoded and decoded on the fly.

\###\\Mojavi\\Action\\BasicConsoleController### Console controller used for CLI scripts. This controller will convert command line arguments to the $\_GET array for easy population of forms and models.

\###\\Mojavi\\Action\\BasicRestController### Rest controller used for an API project. Extends the execute() function with executeGet, executePost, executePut, and executeDelete. Allows for file uploads. Populates a JsonForm for easy display and parsing.

\##Installation## You can include this project in yours by simply adding a folder called mojavi and adding it to your include\_path.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13125333?v=4)[Mark Hobson](/maintainers/hiveclick)[@hiveclick](https://github.com/hiveclick)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

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

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

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

1.9k38.6M289](/packages/laravel-dusk)[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)
