avoutic/web-framework-mysql

MySQL module for WebFramework

1.0.0 2025-03-31 07:16 UTC

This package is auto-updated.

Last update: 2025-03-31 07:18:12 UTC


README

This module provides MySQL database integration for WebFramework.

Installation

Install via Composer:

composer require avoutic/web-framework-mysql

Requirements

  • PHP 8.2 or higher
  • MySQL server
  • PHP mysqli extension
  • WebFramework core package (^8)

Configuration

If you are using the definition from definitions/defitinions.php. You can just add the following db_config.main.php to your auth config directory (config/auth):

<?php

return [
    'database_host' => 'localhost',
    'database_user' => 'your_user',
    'database_password' => 'your_password',
    'database_database' => 'your_database'
]

License

MIT License - see LICENSE file for details.