Download the PHP package pentacore/laravel-typefinder without Composer
On this page you can find all versions of the php package pentacore/laravel-typefinder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pentacore/laravel-typefinder
More information about pentacore/laravel-typefinder
Files in pentacore/laravel-typefinder
Package laravel-typefinder
Short Description Auto-generate TypeScript type definitions from Laravel Models, Enums, Casts, and Requests.
License MIT
Homepage https://github.com/pentacore/laravel-typefinder
Informations about the package laravel-typefinder
Laravel Typefinder
Laravel Typefinder auto-generates TypeScript type definitions (.d.ts files) from your Laravel application. It introspects Eloquent models, backed enums, Form Requests, API Resources, Inertia controllers, broadcast events, and pivot tables to produce accurate, always-fresh types — no manual maintenance required. Ships with opt-in attributes (#[TypefinderOverrides], #[TypefinderWriteShape], #[TypefinderResource], #[TypefinderPage], #[TypefinderBroadcast], #[TypefinderCast], #[TypefinderIgnore]) for the cases where static inference needs a nudge, plus a runtime facade for registering types for third-party casts.
Contents
- Packages
- At a glance
- Quick start
- Supported matrix
- Documentation
- Development
- Contributing
- Security
- License
Packages
| Package | Install |
|---|---|
pentacore/laravel-typefinder |
composer require pentacore/laravel-typefinder |
@pentacore/vite-plugin-laravel-typefinder |
npm i -D @pentacore/vite-plugin-laravel-typefinder |
At a glance
You write this:
Typefinder emits this:
No decorators, no manual schemas — it reads your migrations, $casts, and relationships directly.
Quick start
1. Install the Composer package:
2. Register the Vite plugin (vite.config.js):
3. Generate types:
Types are written to resources/js/typefinder/ by default. The Vite plugin re-runs generation automatically on HMR file changes.
Supported matrix
Every cell below is exercised in CI on every push and PR.
| PHP 8.4 | PHP 8.5 | |
|---|---|---|
| Laravel 12 | ✅ | ✅ |
| Laravel 13 | ✅ | ✅ |
Documentation
Full documentation for each package:
- packages/laravel-typefinder/README.md — configuration, every generated category (models / enums / requests / resources / pivots / pages / broadcasting / helpers), the full attribute reference, the third-party cast registry, and the artisan commands (
typefinder:generate,typefinder:watch) with flags (--check,--json,--debug,--only=). - packages/vite-plugin-laravel-typefinder/README.md — plugin options, debounce behaviour, alternative install from vendor
Development
Contributing
Bug reports, feature proposals, and PRs are welcome. Start with CONTRIBUTING.md — it covers the commit-message convention (Conventional Commits), the pre-commit toolchain (pint, rector, npm run lint), and the CI matrix your changes need to pass.
Security
If you've found a security issue, please follow the disclosure process in SECURITY.md rather than opening a public issue.
License
MIT — see LICENSE.
All versions of laravel-typefinder with dependencies
illuminate/console Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/filesystem Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0