<commit_before># PotatoORM

[![Build Status](https://travis-ci.org/andela-sakande/potatoORM.svg)](https://travis-ci.org/andela-sakande/potatoORM)

This package performs basic CRUD operation using Object Relational Mapping(ORM) :

DIRECTORY STRUCTURE
-------------------

```
src/           core package code
   |DB         database connection class
   |Entities   samples class to test the model class
   |Exceptions custom exception classes
   |Libraries  helper classes
tests/         tests of the core package
```

## Installation

[PHP](https://php.net) 5.5+ and [Composer](https://getcomposer.org) are required.

Via Composer

``` bash
$ composer require sirolad/potato-orm
```
or
``` composer.json
"require": {
        "sirolad/potato-orm": "dev-master"
    }
```

## Usage

Extend `Potato` class like so
```php
    class Car extends Potato
    {

    }
```
The following method can be used to access the classes

## getAll
```php
$goat = Goat::getAll();
print_r($goat);
``` ​
This should print out all the ​goats ​in the ​goats ​table of Goat class.


## Supported Databases
```bash
MySQL
PGSQL
```
## Change log

Please check out [CHANGELOG](CHANGELOG.md) file for information on what has changed recently.

## Testing

``` bash
$ vendor/bin/phpunit test
```

``` composer
$ composer test
```

## Contributing

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

## Credits

Open-source Evangelist is developed and maintained by `<NAME>`.<commit_msg>remove spaces<commit_after># PotatoORM

[![Build Status](https://travis-ci.org/andela-sakande/potatoORM.svg)](https://travis-ci.org/andela-sakande/potatoORM)

This package performs basic CRUD operation using Object Relational Mapping(ORM) :

DIRECTORY STRUCTURE
-------------------

```
src/           core package code
   |DB         database connection class
   |Entities   samples class to test the model class
   |Exceptions custom exception classes
   |Libraries  helper classes
tests/         tests of the core package
```

## Installation

[PHP](https://php.net) 5.5+ and [Composer](https://getcomposer.org) are required.

Via Composer

``` bash
$ composer require sirolad/potato-orm
```
or
``` composer.json
"require": {
        "sirolad/potato-orm": "dev-master"
    }
```

## Usage

Extend `Potato` class like so
``` php
    class Car extends Potato
    {
    }
```
The following method can be used to access the classes

## getAll
``` php
$goat = Goat::getAll();
print_r($goat);
``` ​
This should print out all the ​goats ​in the ​goats ​table of Goat class.


## Supported Databases
``` bash
MySQL
PGSQL
```
## Change log

Please check out [CHANGELOG](CHANGELOG.md) file for information on what has changed recently.

## Testing

``` bash
$ vendor/bin/phpunit test
```

``` composer
$ composer test
```

## Contributing

Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

## Credits

Open-source Evangelist is developed and maintained by `<NAME>`.
{'fraction_non_alphanumeric': 0.134, 'fraction_numerical': 0.0013333333333333333, 'mean_word_length': 3.58868501529052, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706049', 'n_tokens_mistral': 985, 'n_tokens_neox': 941, 'n_words': 298}