nguemoue / laravel-dbobject
Projet qui va permettre de faire la migration des procédure, fonctions, triggers stocke de manière simple
Fund package maintenance!
v1.1.0
2026-01-31 14:35 UTC
Requires
- php: ^8.3|^8.4
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
This package is auto-updated.
Last update: 2026-03-29 01:13:51 UTC
README
Laravel DbObject is a Laravel package for managing SQL stored objects (Functions, Procedures, Views, Triggers) as pure SQL files. It seamlessly integrates with your migration workflow, supporting multiple database drivers with a unified configuration system.
✨ Features
- Pure SQL: Write standard SQL. No custom macros, no YAML front-matter.
- Driver Agnostic: Unifies behavior across MySQL, PostgreSQL, SQL Server, and SQLite.
- Splitter Strategies: Handles
BEGIN...ENDblocks andGObatches automatically. - Zero Config: Works out of the box with sensible defaults for each driver.
- Versioning: Tracks object migrations just like Laravel's schema migrations.
📖 Documentation
The full documentation is available in the docs/ folder or via Mintlify.
🚀 Installation
composer require nguemoue/laravel-dbobject
🛠 Quick Start
-
Create an Object:
php artisan dbo:make my_procedure --type=procedure
-
Migrate:
php artisan dbo:migrate
🔌 Driver Support
| Driver | Transactional | Default Splitter | On Exists |
|---|---|---|---|
| MySQL | false |
mysql_delimiter |
recreate |
| PostgreSQL | true |
none |
replace |
| SQL Server | true |
go_batch |
recreate |
| SQLite | true |
none |
recreate |
🤝 Contributing
Please see CONTRIBUTING for details.
📄 License
The MIT License (MIT). Please see License File for more information.