laravel-faux-generics maintained by glhd
Description
Faux generics for better type hinting and refactoring in Laravel projects.
Author
Last update
2020/09/22 18:09
(dev-master)
License
Downloads
790
Tags
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:
- Models (return types and static methods)
- Query Builder (return types, pass-thru, and forward calls)
- Collections (return types)
- Higher Order Collection Proxies (type-hint on property and method chains)
- Model Scopes (type-hint on builder, relations, etc)
- Factories (type-hint on
factory()calls) - Paginator
- Macros