PHPackages                             chp/cdatabasemodel - 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. chp/cdatabasemodel

ActiveLibrary

chp/cdatabasemodel
==================

Database content to Anax-MVC

v2.0(8y ago)01141MITPHPPHP &gt;=5.4

Since Jan 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Chibi86/CDatabaseModel)[ Packagist](https://packagist.org/packages/chp/cdatabasemodel)[ Docs](http://chibidesign.se)[ RSS](/packages/chp-cdatabasemodel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

CDatabaseModel for ANAX-MVC
===========================

[](#cdatabasemodel-for-anax-mvc)

A model for database-methods, made with guidelines by  (Swedish).

### Added extra:

[](#added-extra)

Limit: `$this->[your-class]->limit(1)`

Offset: `$this->[your-class]->offset(1)`

Count all: `$this->[your-class]->countAll()`

Find all with paging support: `$this->[your-class]->findAll($page, $perPage)`

---

Made by Rasmus Berg,

License
-------

[](#license)

This software is free software and carries a MIT license.

Use of external libraries
-------------------------

[](#use-of-external-libraries)

The following external modules are excluded but will be needed for run this classes.

### Anax-MVC (Get this one first)

[](#anax-mvc-get-this-one-first)

- Github:
- Version: v2.0.x or later
- License: MIT license

### Mos/CDatabase

[](#moscdatabase)

- Github:
- Version: v0.1.1\*
- License: MIT license

Install instructions
--------------------

[](#install-instructions)

### 1. First you will need to install the other modules (if not got theim already).

[](#1-first-you-will-need-to-install-the-other-modules-if-not-got-theim-already)

### 2. The easiest way to install this is using composer:

[](#2-the-easiest-way-to-install-this-is-using-composer)

Write this in your composer:

```
    "chp/cdatabasemodel": "dev-master"
```

History
-------

[](#history)

\###History for CDatabaseModel for ANAX-MVC

v2.0 (2017-10-03)

- Added: Paging support to Find all method (ex. `$this->users->findAll($page, $perPage)`)
- Added: Count all method (ex. `$this->users->countAll()`)
- Bugfix: User object was send with properties
- Bugfix: Update method never save id, when object was send for be edit

v1.0.1 (2017-03-09)

- Update: Remove short php-tag
- Bugfix: Fix wrong namespace

v1.0.0 (2016-11-20)

- First release on Github.

```
Copyright (c) 2016-2017 Rasmus Berg, rasmus.berg@chibidesign.se

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~124 days

Total

3

Last Release

3140d ago

Major Versions

v1.0.1 → v2.02017-10-03

### Community

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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