Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rrcfesc/codeignitercoredatabase

PSR-4 CodeIgniter Mysql Motor
https://github.com/rrcfesc/codeignitercoredatabase

codeigniter psr-4

Last synced: 3 days ago
JSON representation

PSR-4 CodeIgniter Mysql Motor

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/rrcfesc/codeignitercoredatabase.svg?branch=master)](https://travis-ci.org/rrcfesc/codeignitercoredatabase)
[![Coverage Status](https://coveralls.io/repos/github/rrcfesc/codeigniterCoreDatabase/badge.svg?branch=master)](https://coveralls.io/github/rrcfesc/codeigniterCoreDatabase?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rrcfesc/codeigniterCoreDatabase/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rrcfesc/codeigniterCoreDatabase/?branch=master)
[![Dependency Status](https://www.versioneye.com/user/projects/5a2b16b70fb24f466ccb947e/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/5a2b16b70fb24f466ccb947e)

Core Mysql Driver CodeIgniter
========================
Based on the [CodeIgniter](https://github.com/bcit-ci/CodeIgniter) database implementation
This takes the Mysql Library from 3.0 and makes it work without the rest of CodeIgniter.

# Proyecto codeigniterCoreDatabase
Este proyecto busca pasar el driver de CodeIgniter v3.* a un estandar PSR-4 para ser usado
como una libreria más o como capa de acceso a datos

## Ejemplo de carga

```php
'',
'hostname' => 'cicore-db',
'username' => 'root',
'password' => 'mysql',
'database' => 'magento2',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => TRUE,
'db_debug' => 'production',
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);

$test = new CI_DB_mysqli_driver($db);
$query = $test->query("SELECT * FROM tester");
```

## Uso de Docker para ejemplo
Se agrega un docker-compose para poder usarlo de manera integral