aponica/goosemgr-mysqlgoose-php
Goose Manager for Mysqlgoose Database Abstraction.
aponica/goosemgr-mysqlgoose-php

Goose Manager for Mysqlgoose Database Abstraction.

A "[Goose Manager](https://aponica.com/docs/goosemgr-php)" provides a consistent way to access an object or relational database.

A "Mysqlgoose Manager" allows Mysqlgoose to be managed consistently with other types of "Goose."

An equivalent JS package, @aponica/goosemgr-mysqlgoose-js, is maintained for consistency.

Installation

composer install aponica/goosemgr-mysqlgoose-php

Usage

Step 1: Create Configuration Files

Create a database connection file and Mysqlgoose definitions file according to the first two steps for aponica/mysqlgoose-php.

Step 2: Use a Mysqlgoose Manager

Use class cMysqlgooseMgr to connect to your database and create the models, then use the models as specified in the aponica/mysqlgoose-php documentation:

$mgr = new \Aponica\MysqlgooseMgr\cMysqlgooseMgr( 'definitions.json' );
$mgr->fConnect( 'mysql.json' );
$mgr->fiModel( 'customer' )->findById( 1234 );

Please Donate!

Help keep a roof over our heads and food on our plates! If you find aponica® open source software useful, please click here to make a one-time or recurring donation via PayPal, credit or debit card. Thank you kindly!

Unit Testing

The PHPUnit unit tests require the test database and configuration as specified for aponica/mysqlgoose-php.

Contributing

Please contact us if you believe this package is missing important functionality that you'd like to provide.

Under the covers, the code is heavily commented and uses a form of Hungarian notation for data type guidance. If you submit a pull request, please try to maintain the (admittedly unusual) coding style, which is the product of many decades of programming experience.

Copyright

Copyright 2019-2022 Opplaud LLC and other contributors.

License

MIT License.

Trademarks

OPPLAUD and aponica are registered trademarks of Opplaud LLC.

Related Links

Official links for this project:

Related projects: