PHPackages                             maksi/laravel-idea-type-hinting - 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. maksi/laravel-idea-type-hinting

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

maksi/laravel-idea-type-hinting
===============================

Better type hinting for eloquent models

1.0.1(8y ago)51.2kMITPHPPHP ~7.0|~7.1|~7.2

Since Mar 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TBlindaruk/laravel-idea-type-hinting)[ Packagist](https://packagist.org/packages/maksi/laravel-idea-type-hinting)[ Docs](https://github.com/TBlindaruk/laravel-idea-type-hinting)[ RSS](/packages/maksi-laravel-idea-type-hinting/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

laravel-idea-type-hinting
=========================

[](#laravel-idea-type-hinting)

It is a package for better type hinting

---

Usages:
-------

[](#usages)

1. You can extend the `Maksi\TypeHinting\Database\Eloquent\Model` model.
2. You can use traits: `Maksi\TypeHinting\Eloquent\Concerns\ModelAnnotations.php` and `Maksi\TypeHinting\Eloquent\Concerns\ModelStaticAnnotations.php` directly in your models.

Methods from Eloquent builder will be type hinted on your models after `model extending` or `traits usages`

- `whereKey`
- `whereKeyNot`
- `where`
- `find`
- `findMany`
- `findOrFail`
- `findOrNew`
- `firstOrNew`
- `firstOrCreate`
- `updateOrCreate`
- `firstOrFail`
- `firstOr`
- `create`
- `forceCreate`
- `update`
- `paginate`

---

---

### Issue

[](#issue)

In case if you have some idea for improvements, then please create an issue/PR for this project

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44faf2952425b8b65290913cb264454733c34fada3a9dc6aa5435566e2d36ce2?d=identicon)[Tetiana](/maintainers/Tetiana)

---

Top Contributors

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

---

Tags

typelaravelphpstormmodeleloquentmodelsideahintingmakssiis

### Embed Badge

![Health badge](/badges/maksi-laravel-idea-type-hinting/health.svg)

```
[![Health](https://phpackages.com/badges/maksi-laravel-idea-type-hinting/health.svg)](https://phpackages.com/packages/maksi-laravel-idea-type-hinting)
```

###  Alternatives

[esensi/model

The base model traits of Esensi

20266.5k1](/packages/esensi-model)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[pursehouse/modeler-laravel-eloquent

Generate model classes for Eloquent in Laravel

112.4k](/packages/pursehouse-modeler-laravel-eloquent)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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