nguemoue/laravel-dbobject

Projet qui va permettre de faire la migration des procédure, fonctions, triggers stocke de manière simple

Maintainers

Package info

github.com/Nguemoue/laravel-dbobject

Homepage

pkg:composer/nguemoue/laravel-dbobject

Fund package maintenance!

Nguemoue

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 2

v1.1.0 2026-01-31 14:35 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.

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.