Download the PHP package arnaldo-tomo/laravel-autoscema without Composer
On this page you can find all versions of the php package arnaldo-tomo/laravel-autoscema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arnaldo-tomo/laravel-autoscema
More information about arnaldo-tomo/laravel-autoscema
Files in arnaldo-tomo/laravel-autoscema
Package laravel-autoscema
Short Description Automatically generate TypeScript types and validation schemas from Laravel Models with zero configuration
License MIT
Rated 5.00 based on 1 reviews
Informations about the package laravel-autoscema
Laravel AutoSchema
๐ Automatically generate TypeScript types and validation schemas from Laravel Models with zero configuration.
โจ Features
- ๐ Zero Configuration - Works out of the box with intelligent defaults
- ๐ TypeScript Types - Generate perfect TypeScript interfaces from Eloquent models
- ๐ Relationships - Automatically handle Eloquent relationships
- โ Validation Schemas - Generate Zod/Yup schemas from Form Requests
- ๐ API Client - Generate typed API clients for your endpoints
- ๐๏ธ File Watcher - Real-time regeneration when models change
- ๐ฏ Framework Integration - Perfect for Inertia.js, React, Vue, and more
๐ Quick Start
Installation
Initialize
Generate Types
That's it! Your TypeScript types are ready in resources/js/types/.
๐ Example
Laravel Model
Generated TypeScript
Form Request Integration
Generated Validation Schema
๐ ๏ธ Commands
Generate Types
File Watcher
โ๏ธ Configuration
Publish the configuration file:
Configuration Options
๐ง Advanced Usage
API Client Generation
When enabled, AutoSchema generates a complete API client:
Custom Types
Handle complex relationships and custom types:
Generated TypeScript:
Integration with Frontend Frameworks
React + TypeScript
Vue + TypeScript
Inertia.js
๐ Workflow Integration
GitHub Actions
Pre-commit Hook
๐ฏ Use Cases
E-commerce Platform
Generated types enable perfect frontend integration:
API Integration
Form Validation
๐ง Troubleshooting
Common Issues
Types not generating?
- Check if models extend
Illuminate\Database\Eloquent\Model - Ensure output directory is writable
- Run with
--dry-runto see what would be generated
Relationships not showing?
- Ensure relationships return
Illuminate\Database\Eloquent\Relations\Relation - Check if
include_relationshipsis enabled in config - Verify relationship methods are public
Custom types not working?
- Add custom type mappings in configuration
- Use
--forceto overwrite existing files - Check Laravel logs for errors
Debug Mode
๐งช Testing
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Setup
๐ Changelog
Please see CHANGELOG.md for recent changes.
๐ก๏ธ Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
๐ License
Laravel AutoSchema is open-sourced software licensed under the MIT license.
๐ Credits
- Arnaldo Tomo - Creator and maintainer
- All Contributors
๐ Support
- โญ Star the project on GitHub
- ๐ Report issues on GitHub Issues
- ๐ก Request features on GitHub Discussions
- ๐ Read the documentation
Made with โค๏ธ by Arnaldo Tomo in Mozambique ๐ฒ๐ฟ
All versions of laravel-autoscema with dependencies
illuminate/contracts Version >=9.0 <21.0
illuminate/support Version >=9.0 <21.0
illuminate/console Version >=9.0 <21.0
illuminate/database Version >=9.0 <21.0
nikic/php-parser Version ^4.15 || ^5.0
symfony/finder Version ^6.0|^7.0