Date: 2025-08-10
symfony/finder to versions 5.x and 6.x.To install or upgrade to this version, simply run:
composer require saher/artisan-schematics --dev
Composer will automatically install the latest stable version (v1.1.0).
If upgrading from an older version, itβs recommended to run:
composer update saher/artisan-schematics
For any issues, feel free to open an issue or contribute via pull requests.
Thank you for using Artisan Schematics! Weβre committed to continuously improving your development experience.
We are excited to announce the first stable release of artisan-schematics! This release marks a major milestone, providing a powerful, extensible, and professional Laravel package to export your Eloquent models and PHP enums to multiple languages with full type safety.
hasOne, hasMany, belongsTo, belongsToMany, morphTo, morphMany, hasOneThrough, and more.GeneratorContract and registering them.composer require saher/artisan-schematics --dev
Publish the configuration file:
php artisan vendor:publish --provider="Saher\ArtisanSchematics\ArtisanSchematicsServiceProvider"
Edit config/schematics.php to customize your output.
Export all models and enums:
php artisan schematics:export
Or specify custom paths:
php artisan schematics:export --paths=app/Models,app/Enums
Generated files will be placed in language-specific folders by default:
resource/ts/schemastests/output/darttests/output/kotlintests/output/swiftRun the test suite to ensure everything works as expected:
./vendor/bin/pest
We welcome contributions! Feel free to open issues or submit pull requests to improve artisan-schematics.
This package is licensed under the [MIT License](LICENSE).
Thank you for using artisan-schematics! For more details, visit the [GitHub Repository](https://github.com/Qaidsaher/artisan-schematics) or the [Packagist page](https://packagist.org/packages/saher/artisan-schematics).
How can I help you explore Laravel packages today?