PHPackages                             lumenpress/nimble - 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. lumenpress/nimble

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

lumenpress/nimble
=================

v0.2.3(8y ago)33482PHPPHP &gt;=5.6.4

Since Oct 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lumenpress/nimble)[ Packagist](https://packagist.org/packages/lumenpress/nimble)[ RSS](/packages/lumenpress-nimble/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (10)Versions (10)Used By (2)

Nimble
======

[](#nimble)

[![Build Status](https://camo.githubusercontent.com/21e4e9e39a112824aca5f1f84b239caa48261bc472341f558330f3bf1bf40a12/68747470733a2f2f7472617669732d63692e6f72672f6c756d656e70726573732f6e696d626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lumenpress/nimble) [![Latest Stable Version](https://camo.githubusercontent.com/3616c62785157b150a678a9deb758d84cdffdbaabdf8600cdaeba1cc4e7746df/68747470733a2f2f706f7365722e707567782e6f72672f6c756d656e70726573732f6e696d626c652f762f737461626c65)](https://packagist.org/packages/lumenpress/nimble) [![Total Downloads](https://camo.githubusercontent.com/e2cc125015adfe515a4ff046cc32a759f222150de5a45b8c684c1f1d21bfc214/68747470733a2f2f706f7365722e707567782e6f72672f6c756d656e70726573732f6e696d626c652f646f776e6c6f616473)](https://packagist.org/packages/lumenpress/nimble) [![License](https://camo.githubusercontent.com/484db7cb8c66885180988a9ddfe7aeda44dc95dd25bfdfb37bcddca9b55fbf57/68747470733a2f2f706f7365722e707567782e6f72672f6c756d656e70726573732f6e696d626c652f6c6963656e7365)](https://packagist.org/packages/lumenpress/nimble)

- [Post/Page](#)
    - [Models](#)
    - [Buidlers](#)
        - [Types](#)
        - [Status](#)
        - [Slug](#)
        - [Url](#)
        - [Where &amp; whereIn &amp; orWhere &amp; orWhereIn](#)
        - [Order By](#)
- [Menu](#)
    - [Location](#)
    - [Slug](#)
    - [Collection](#)
- [Term](#)
    - [Models](#)
    - [Buidlers](#)[Taxonomy](#)[Exists](#)[Where &amp; whereIn &amp; orWhere &amp; orWhereIn](#)
- [Taxonomy/Category/Tag](#)
- [User](#)
- [Comment](#)

```
$post = new Post;
$post->title = 'Hello World';
$post->content = 'This is a post.';

// meta
$post->meta->foo = 'bar';
$post->meta->arr = ['value1', 'value2'];

// taxonomy
$post->tax->category = 'category name';
$post->tax->post_tag = ['tag1', 'tag2'];

// acf
// text type
$post->acf->text = 'Text1';

// group type
$post->acf->hero = [
  'image' => '/path/to/image.png',
  'link' => 'http://'
];

// repeater type
$post->acf->slides = [
  [
    'image' => '/path/to/image.png',
    'description' => 'some text1',
    'link' => 'http://'
  ],
  [
    'image' => '/path/to/image.png',
    'description' => 'some text2',
    'link' => 'http://'
  ],
];

$post->save();
```

Post/Page
---------

[](#postpage)

### Models

[](#models)

- Inserts

```
$post = new Post;
$post->title = 'title';
$post->content = 'content';
$post->save();
```

- Updates

```
$post = Post::find(1);
$post->title = 'title';
$post->content = 'content';
$post->save();
```

### Buidlers

[](#buidlers)

- Types

```
// single type
Post::type('post');
// equal
Post::where('post_type', 'post');

// multiple types
Post::type('page', 'post');
Post::type(['page', 'post']);
// equal
Post::whereIn('post_type', ['page', 'post']);
```

- Status

```
// single status
Post::status('publish');
// equal
Post::where('post_status', 'publish');

// multiple status
Post::status('publish', 'draft');
Post::status(['publish', 'draft']);
// equal
Post::whereIn('post_status', ['publish', 'draft']);
```

- Slug

```
Post::slug('post-name');
// equal
Post::where('post_name', 'post-name');
```

- Url

```
Page::url('parent-name/post-name');
// equal
$parent = Page::slug('parent-name')->first();
Page::parent($parent->id)->slug('post-name')->first();
```

- Where &amp; whereIn &amp; orWhere &amp; orWhereIn

```
// query from post field
Page::where('field', 'value');

// query from post meta key
Page::where('meta.key', 'value');

// query from term taxonomy
Page::where('term.taxonomy', 'taxonomy');

// query from term name
Page::where('term.name', 'term name');

// query from term meta key
Page::where('term.meta.key', 'value');
```

- Order By

```
// order by post field
Page::type('page')->orderBy('date', 'asc'); // asc & desc

// order by meta key value
Page::type('page')->orderBy('meta.key', 'desc');
```

Menu
----

[](#menu)

### Location

[](#location)

```
Menu::location('main');
Menu::location('footer');
```

### Slug

[](#slug)

```
Menu::slug('main');
```

### Collection

[](#collection)

```
$menus = Menu::get();
$menus['main']; // location name
$menus[1]; // menu id
```

Term
----

[](#term)

### Models

[](#models-1)

```
$term = new Term;
$term->taxonomy = 'category';
$term->name = 'Category Name';
$term->save();
```

### Buidlers

[](#buidlers-1)

Taxonomy

```
Term::taxonomy('category');
```

Exists

```
Term::exists($taxonomy, $name, $parent = 0);
```

Where &amp; whereIn &amp; orWhere &amp; orWhereIn

```
// query from term field
Term::where('field', 'value');

// query from term meta key
Term::where('meta.key', 'value');
```

Taxonomy/Category/Tag
---------------------

[](#taxonomycategorytag)

comming soon

User
----

[](#user)

comming soon

Comment
-------

[](#comment)

comming soon

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

Every ~4 days

Total

9

Last Release

3108d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

eloquentlaravelormwordpress

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[plank/laravel-mediable

A package for easily uploading and attaching media files to models with Laravel

8271.5M11](/packages/plank-laravel-mediable)[staudenmeir/eloquent-json-relations

Laravel Eloquent relationships with JSON keys

1.1k5.8M24](/packages/staudenmeir-eloquent-json-relations)[spatie/laravel-db-snapshots

Quickly dump and load databases

1.2k2.8M20](/packages/spatie-laravel-db-snapshots)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[gearbox-solutions/eloquent-filemaker

A package for getting FileMaker records as Eloquent models in Laravel

6454.8k2](/packages/gearbox-solutions-eloquent-filemaker)

PHPackages © 2026

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