PHPackages                             guifavere/laravel-simple-scopes - 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. guifavere/laravel-simple-scopes

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

guifavere/laravel-simple-scopes
===============================

Simple scopes for laravel projects

1.1.2(2y ago)029MITPHPPHP ^7.4

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/guifavere/laravel-simple-scopes)[ Packagist](https://packagist.org/packages/guifavere/laravel-simple-scopes)[ RSS](/packages/guifavere-laravel-simple-scopes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

laravel simple scopes
=====================

[](#laravel-simple-scopes)

Provides some useful scopes, and custom queries for laravel projects. This project was inspired in the package: [laracraft-tech/laravel-date-scopes](https://github.com/laracraft-tech/laravel-date-scopes).

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

[](#installation)

You can install via composer:

```
composer require guifavere/laravel-simple-scopes
```

How it works
------------

[](#how-it-works)

Currently there are only scopes, and custom queries for dates. They are:

```
createdFrom::('2023-12-06');
createdTo::('2023-12-06');
modifiedFrom::('2023-12-06');
modifiedTo::('2023-12-06');
```

You can use the trait: `DateScopes` inside the eloquent models, or the: `DateQueries` for the custom query builders.

**Examples:**

```
use GuiFavere\LaravelSimpleScopes\Dates\DateScopes;

class Resource extends Model
{
    use DateScopes;
}
```

```
use GuiFavere\LaravelSimpleScopes\Dates\DateQueries;

class ResourceQueryBuilder extends Builder
{
    use DateQueries;
}
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~14 days

Total

4

Last Release

1029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fb45c7725eb44d36ef334783fc2b212889c31b058604e238eb73351098b36af?d=identicon)[guifavere](/maintainers/guifavere)

---

Top Contributors

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

---

Tags

laravellaravel scopes

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/guifavere-laravel-simple-scopes/health.svg)

```
[![Health](https://phpackages.com/badges/guifavere-laravel-simple-scopes/health.svg)](https://phpackages.com/packages/guifavere-laravel-simple-scopes)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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