michael4d45/effect-schema-generator
| Install | |
|---|---|
composer require michael4d45/effect-schema-generator |
|
| Latest Version: | v0.7.1 |
| PHP: | ^8.3 |
| Laravel: | 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 1, 2026 |
| Links: | GitHub · Packagist |
effect-schema-generator
Native generator for TypeScript / Effect schemas from Spatie Laravel Data classes. PHP source of truth: Laravel-Effect-Generator.
Packages
| Distro | Path | Who consumes it |
|---|---|---|
npm @michael4d45/effect-schema-generator |
js/ |
Vite, npm run types:generate, CI |
Composer michael4d45/effect-schema-generator |
php/ (root composer.json for Packagist) |
#[Optional] attributes + Artisan wrapper |
Cargo effect-schema-generator |
crate root | the effect-schema binary |
Apps should generate types from npm, not from php artisan, so Alpine Docker/CI and Lerd Vite do not boot Laravel (~0.9s) and do not need a sibling cargo build.
Local binary
cargo test
cargo build --release
./target/release/effect-schema transform --config effect-schema.toml
Musl (Alpine / static Linux):
rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl
# see scripts/build-npm-binaries.sh
Publish
GitHub Actions (.github/workflows/release.yml) builds platform binaries, copies them into js/binaries/, and npm publishs @michael4d45/effect-schema-generator via npm Trusted Publishing (OIDC). Configure the trusted publisher on that npm package for repo Michael4d45/effect-schema-generator and workflow release.yml.
git tag v0.7.1
git push origin v0.7.1
Composer is Packagist michael4d45/effect-schema-generator (root composer.json, sources in php/). After tagging, point the existing Packagist listing at https://github.com/Michael4d45/effect-schema-generator.
Related Packages
Generate Zod v4 TypeScript schemas from Spatie Laravel Data classes (output) and...
Transform Laravel models, routes, and controllers into a Typescript API client
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.7.1 | ^8.3 | ^12.0| | MIT | |
| v0.7.0 | ^8.3 | ^12.0| | MIT |