2017 © Pedro Peláez
 

library kodi-pandabase-provider

KodiApp Pandabase provider

image

kodi-app/kodi-pandabase-provider

KodiApp Pandabase provider

  • Monday, October 2, 2017
  • by kodi-app
  • Repository
  • 2 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PandaBaseProvider

ServiceProvider for KodiApp which provides Pandabase ORM., (*1)

Installation

$ composer require kodi-app/kodi-pandabase-provider

About PandaBase

Check the official documentation (It supports PandaBase version v0.20.0 or above), (*2)

Initialization of PandaBaseProvider

Initialization of one connection:, (*3)

$application->run([
    // ...
    KodiConf::SERVICES => [
        // List of Services
        [
            "class_name" => PandaBaseProvider::class,
            "parameters" => [
                "name"      =>  "test_connection",  // Connection's name.
                "driver"    =>  "mysql",            // Same as PDO parameter
                "dbname"    =>  "test_dbname",      // Same as PDO parameter
                "host"      =>  "127.0.0.1",        // Same as PDO parameter
                "user"      =>  "root",             // Same as PDO parameter
                "password"  =>  ""                  // Same as PDO parameter
                "attributes"=>  [
                    attributeName => value,
                    ...
                ]                                   // Optional, PDO attributes
            ]
        ]
        // ...
    ],
    // ...
]);

Usage of Pandabase


// You can get ConnectionManager via Application singleton instance $db = Application::get("db"); // Or you can get it via ConnectionManager singleton instance $db = ConnectionManager::getInstance();

The Versions

02/10 2017

dev-master

9999999-dev https://github.com/kodi-app/kodi-pandabase-provider

KodiApp Pandabase provider

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

orm framework twig php kodiapp

02/10 2017

v0.9.2

0.9.2.0 https://github.com/kodi-app/kodi-pandabase-provider

KodiApp Pandabase provider

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

orm framework php kodiapp

09/09 2017

v0.9.1

0.9.1.0 https://github.com/kodi-app/kodi-pandabase-provider

KodiApp Pandabase provider

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

framework twig php kodiapp

09/09 2017

v0.9.0

0.9.0.0 https://github.com/kodi-app/kodi-pandabase-provider

KodiApp Pandabase provider

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Attila Nagy

framework twig php kodiapp