LaravelPackages.net
Acme Inc.
Toggle sidebar
glhd/laravel-faux-generics

Faux generics for better type hinting and refactoring in Laravel projects.

790
0
0.4.0
About glhd/laravel-faux-generics

glhd/laravel-faux-generics is a Laravel package for faux generics for better type hinting and refactoring in laravel projects.. It currently has 0 GitHub stars and 790 downloads on Packagist (latest version 0.4.0). Install it with composer require glhd/laravel-faux-generics. Discover more Laravel packages by glhd or browse all Laravel packages to compare alternatives.

Last updated

Faux Generics

This package lets you generate Laravel-specific helper files to simulate generics in PHP. This provides better type hinting and refactoring for many of Laravel's fluent and proxy features:

  • [x] Models (return types and static methods)
  • [x] Query Builder (return types, pass-thru, and forward calls)
  • [x] Collections (return types)
  • [x] Higher Order Collection Proxies (type-hint on property and method chains)
  • [x] Model Scopes (type-hint on builder, relations, etc)
  • [x] Factories (type-hint on factory() calls)
  • [ ] Paginator
  • [x] Macros
Comments