2017 © Pedro Peláez
 

cakephp-plugin datasources

CakePHP Datasources Plugin

image

cakephp/datasources

CakePHP Datasources Plugin

  • Monday, November 13, 2017
  • by cakephp
  • Repository
  • 51 Watchers
  • 244 Stars
  • 33,207 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 125 Forks
  • 32 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

CakePHP datasources plugin - 2.0 dev branch

This plugin contains various datasources contributed by the core CakePHP team and the community. The datasources plugin for CakePHP 2.0 is still in development. Refer to the following lists which Datasources are already fixed for the 2.0 branch., (*1)

Already compatible Datasources:

  • AmazonAssociatesSource
  • ArraySource
  • CsvSource
  • XmlrpcSource
  • Database/MysqlLog

Still Incompatible Datasources:

  • CouchdbSource
  • LdapSource
  • SoapSource
  • Database/Adodb
  • Database/Db2
  • Database/Firebird
  • Database/Odbc
  • Database/Sqlite3
  • Database/Sqlsrv
  • Database/Sybase

Using the datasources plugin

First download the repository and place it in app/Plugin/Datasources or on one of your plugin paths. You can then import and use the datasources in your App classes., (*2)

Model validation

Datasource plugin datasources can be used either through App::uses of by defining them in your database configuration, (*3)

class DATABASE_CONFIG {
    public $mySource = array(
        'datasource' => 'Datasources.XmlrpcSource',
        ...
        );
    }
}

or, (*4)

App::uses('XmlrpcSource', 'Datasources.Model/Datasource');

or, if using one of the pdo extended datasources,, (*5)

class DATABASE_CONFIG {
    public $mySource = array(
        'driver' => 'Datasources.Database/Firebird',
        ...
        );
    }
}

Contributing to datasources

If you have a datasource, or an idea for a datasource that could benefit the CakePHP community, please fork the project on github. Once you have forked the project you can commit your datasource class (and any test cases). Once you have pushed your changes back to github you can send a pull request, and your changes will be reviewed and merged in or feedback will be given., (*6)

Issues with datasources

If you have issues with the datasources plugin, you can report them via Github issues, (*7)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/cakephp/datasources

CakePHP Datasources Plugin

  Sources   Download

MIT

The Requires

 

cakephp couchdb ldap adodb sqlite sqlserver odbc datasources firebird sybase db2