PHPackages                             xjchen/limited-trait - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xjchen/limited-trait

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xjchen/limited-trait
====================

v0.0.1(11y ago)072PHPPHP &gt;=5.4.0

Since Jan 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/xjchengo/limited-trait)[ Packagist](https://packagist.org/packages/xjchen/limited-trait)[ RSS](/packages/xjchen-limited-trait/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Global Scope for Limiting
=================================

[](#laravel-global-scope-for-limiting)

This is a trait used for eloquent global scope. It can be used to add where condition to the query.

Installation
------------

[](#installation)

Add `xjchen/limited-trait` as a requirement to `composer.json`:

```
{
    "require": {
        "xjchen/limited-trait": "dev-master"
    }
}
```

Update your packages with `composer update` or install with `composer install`.

You can also add the package using `composer require xjchen/limited-trait` and later specifying the version you want (for now, `dev-master` is your best bet).

Usage
-----

[](#usage)

1. add `use LimitedTrait` in your model
2. fill `protected $limitedColumns = ['limited_column1', 'limited_column2']`
3. add method `getLimitedLimitedColumn1` and `getLimitedLimitedColumns2`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

4124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/812e4f96e9fc673af1ec2b1ad4536369021d54492cc970e9f408b26e4dee3bf4?d=identicon)[xjchengo](/maintainers/xjchengo)

---

Top Contributors

[![realtimebus](https://avatars.githubusercontent.com/u/4567850?v=4)](https://github.com/realtimebus "realtimebus (7 commits)")[![xjchengo](https://avatars.githubusercontent.com/u/4819996?v=4)](https://github.com/xjchengo "xjchengo (1 commits)")

### Embed Badge

![Health badge](/badges/xjchen-limited-trait/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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