Looking to hire Laravel developers? Try LaraJobs

laravel-dbobject maintained by nguemoue

Description
Projet qui va permettre de faire la migration des procédure, fonctions, triggers stocke de manière simple
Author
Last update
2026/04/14 23:25 (dev-main)
License
Downloads
5

Comments
comments powered by Disqus

Laravel DbObject

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.

Latest Version on Packagist Tests


✨ 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...END blocks and GO batches 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

  1. Create an Object:

    php artisan dbo:make my_procedure --type=procedure
    
  2. 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.