2017 © Pedro Peláez
 

library medoo-provider

Service Provider for use of the Medoo ORM in the Autarky framework.

image

bearlikelion/medoo-provider

Service Provider for use of the Medoo ORM in the Autarky framework.

  • Thursday, November 20, 2014
  • by bearlikelion
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Autarky Medoo Provider

Medoo is a lightweight easy and powerful database framework compatible with various databases including MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL and more., (*1)

Autarky is a PHP framework aimed at developers wit a focus on freedom of choice., (*2)

Usage Instructions

First, update database config to use a new, Medoo specific connection., (*3)

return [
    /** The connection to use. */
    'connection' => 'medoo',

    /** The connections to choose from. */
    'connections' => [
        'medoo' => [
            /** Required */
            'server' => '{sever_host}',
            'username' => '{username}',
            'password' => '{password}',
            'database_type' => 'mysql',
            'database_name' => '{database_name}',

            /** Optional */
            'port' => 3306,
            'charset' => 'utf8',
        ]
    ]
];

Once configured, you can resolve Medoo using Autarky's container, (*4)

    $container = $this->app->getContainer();
    $db = $container->resolve('Medoo'); // Medoo is also aliased as DB

    $student = $db->get('students', '*', [
        'name' => 'Bobby Tables'
    ]);

For further documentation on using Medoo, please consult the documentation., (*5)

The Versions

20/11 2014

dev-master

9999999-dev

Service Provider for use of the Medoo ORM in the Autarky framework.

  Sources   Download

MIT

The Requires

 

orm autarky medoo

20/11 2014

1.0.0

1.0.0.0

Service Provider for use of the Eloquent ORM in the Autarky framework.

  Sources   Download

MIT

The Requires

 

orm autarky medoo