/hamper

📚 Developer friendly database library for vtiger

Primary LanguagePHPMIT LicenseMIT

hamper

Developer friendly database library for vtiger

Installation

You can install the package via composer:

composer require javanile/hamper

Usage

You simply get your $hdb object to access on database

use Javanile\Hamper\Hamper;

$hdb = Hamper::getInstance();

Documentation

  1. Data manipulation
    1. Execute query
    2. Fetch one record
    3. Fetch record list
    4. Insert one record
    5. Update one record CIAO
    6. Delete one record
  2. Tables manipulation
    1. Create new table

Data manipulation

Execute query

asdkljalsd askdjalòskdjasld aksdjalskdja dasdkjasldkjasd as dalksdjalòskdj

$hdb->query(...)

Samples

asdasdasd adasdasd

[back to top]

Fetch one record

$hdb->fetch(...)

[back to top]

Fetch record list

$hdb->fetchAll(...)

[back to top]

Insert one record

$hdb->insert(...)

[back to top]

Update one record CIAO

$hdb->update(...)

[back to top]

Delete one record

$hdb->delete(...)

[back to top]

Tables manipulation

Create new table

$hdb->create(...)

[back to top]

Changelog

Please see CHANGELOG for more information on what has changed recently.

Testing

$ make install
$ make tdd take=tests/HamperDatabaseTest.php 

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email bianco@javanile.org instead of using the issue tracker.

Socialware

We highly appreciate if you create a social post on facebook or twitter with following hashtag:

Credits

Support us

Javanile is a community project agency based in Sicily, Italy. You'll find an overview of all our projects on our website.

Does your business depend on our contributions? Reach out and support us on Patreon.

License

The MIT License (MIT). Please see License File for more information.