2017 © Pedro Peláez
 

library laravel-medoo

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

image

repat/laravel-medoo

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

  • Monday, December 14, 2015
  • by repat
  • Repository
  • 1 Watchers
  • 2 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 955 Forks
  • 0 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

laravel-medoo

This package provides a Facade and ServiceProvider for the database framework medoo. It might be useful in Lumen or when you already have existing code that's based on medoo and you would like to port it to Laravel/Lumen instead of rewriting the whole code to use the Query Builder or Eloquent., (*1)

It uses the default connection., (*2)

Installation

  1. Install the package

composer require repat/laravel-medoo, (*3)

  1. Add the Service Provider to the providers array in app/config/app.php
repat\LaravelMedoo\MedooServiceProvider::class,
  1. Add alias in app/config/app.php
'Medoo'            => repat\LaravelMedoo\MedooFacade::class,

Usage

Medoo::select("table", "*");

See official medoo documentation for more., (*4)


, (*5)

Medoo

The Lightest PHP database framework to accelerate development, (*6)

Main Features

  • Lightweight - 20KB around with only one file., (*7)

  • Easy - Extremely easy to learn and use, friendly construction., (*8)

  • Powerful - Support various common and complex SQL queries., (*9)

  • Compatible - Support various SQL database, including MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL and more., (*10)

  • Security - Prevent SQL injection., (*11)

  • Free - Under MIT license, you can use it anywhere if you want., (*12)

Get Started

Install via composer

Add Medoo to composer.json configuration file., (*13)

$ composer require catfan/Medoo

And update the composer, (*14)

$ composer update
// If you installed via composer, just use this code to requrie autoloader on the top of your projects.
require 'vendor/autoload.php';

// Or if you just download the medoo.php into directory, require it with the correct path.
require_once 'medoo.php';

// Initialize
$database = new medoo([
    'database_type' => 'mysql',
    'database_name' => 'name',
    'server' => 'localhost',
    'username' => 'your_username',
    'password' => 'your_password',
    'charset' => 'utf8'
]);

// Enjoy
$database->insert('account', [
    'user_name' => 'foo',
    'email' => 'foo@bar.com',
    'age' => 25,
    'lang' => ['en', 'fr', 'jp', 'cn']
]);

Contribution Guides

For most of time, Medoo is using develop branch for adding feature and fixing bug, and the branch will be merged into master branch while releasing a public version. For contribution, submit your code to the develop branch, and start a pull request into it., (*15)

On develop branch, each commits are started with [fix], [feature] or [update] tag to indicate the change., (*16)

Keep it simple and keep it clear., (*17)

License

Medoo is under the MIT License., (*18)

The Versions

14/12 2015

dev-master

9999999-dev http://medoo.in

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

 

by Angel Lai
by Avatar repat

database laravel sql lumen lightweight mssql mysql sqlite php framework

14/12 2015

1.0.3

1.0.3.0 http://medoo.in

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

 

by Angel Lai
by Avatar repat

database laravel sql lumen lightweight mssql mysql sqlite php framework

14/12 2015

1.0.2

1.0.2.0 http://medoo.in

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

 

by Angel Lai
by Avatar repat

database laravel sql lumen lightweight mssql mysql sqlite php framework

14/12 2015

1.0.1

1.0.1.0 http://medoo.in

Laravel Facade and ServiceProvider for The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

 

by Angel Lai
by Avatar repat

database laravel sql lumen lightweight mssql mysql sqlite php framework

06/12 2015

dev-develop

dev-develop http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

05/10 2015

v1.0

1.0.0.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

11/02 2015

v0.9.8

0.9.8.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

04/12 2014

v0.9.7

0.9.7.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

15/08 2014

v0.9.6.2

0.9.6.2 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite

08/06 2014

v0.9.6

0.9.6.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite

28/04 2014

v0.9.5.3

0.9.5.3 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite