New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

michael4d45/effect-schema-generator

PHP attributes and Artisan wrapper for the Rust effect-schema binary
1,115
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
Maintainer: Michael4d45

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

based/laravel-typescript

Transform Laravel models into TypeScript interfaces

162,562 397
gabrielmpetrescu/laravel-typescript

Transform Laravel models into TypeScript interfaces

12,150 0
dragosstoenica/laravel-zod

Generate Zod v4 TypeScript schemas from Spatie Laravel Data classes (output) and...

1,678 1
lumore/laravel-typescript

Transform Laravel models into TypeScript interfaces

1,212 2
calvient/puddleglum

Transform Laravel models, routes, and controllers into a Typescript API client

15,602 3

Version History

Version Released PHP Laravel License
v0.7.1 ^8.3 ^12.0|^13.0 MIT
v0.7.0 ^8.3 ^12.0|^13.0 MIT