2017 © Pedro Peláez
 

library package-database

ZN Framework Database Package

image

znframework/package-database

ZN Framework Database Package

  • Wednesday, August 1, 2018
  • by znframework
  • Repository
  • 3 Watchers
  • 0 Stars
  • 197 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 32 Versions
  • 53 % Grown

The README.md

, (*1)

ZN Framework Database Package

Follow the steps below for installation and use. , (*2)

Installation

You only need to run the following code for the installation. , (*3)

composer require znframework/package-database

Documentation

Click for documentation of your library. , (*4)

Example Usage

Basic level usage is shown below. , (*5)

<?php require 'vendor/autoload.php';

ZN\ZN::run();

# The default settings are in the ZN\Database\DatabaseDefaultConfiguration file. 
# You can make your settings in this file.
# The Config::set() method should be used if you need to configure settings externally.
Config::database('database', 
[
    'driver'   => 'mysqli',
    'host'     => 'localhost', 
    'database' => 'test',
    'user'     => 'root',
    'password' => '',
    'prefix'   => ''
]);

$persons = DB::persons();

Output::display($persons->result());

The Versions