<commit_before># pdo-crud-for-free

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This package provides a few classes to try to give programmers using PDO in a simple way some instance CRUD (create-read-update-delete) method, 'for free', simply by subclassing \Mattsmithdev\Pdo\DatabaseTable.

All code is (intented :-) to follow PSR-1, PSR-2 coding standards. Classes are following the PSR-4 autoloading standard.

## Install

Via Composer

``` bash
$ composer require mattsmithdev/pdo-crud-for-free
```

## Usage

``` php

// file: /src/Product.php
class Product extends \Mattsmithdev\Pdo\DatabaseTable {
    // private properties with EXACTLY same names as DB table columns
    
    // and ensure DB table has 'id' integer auto-increment primary key<commit_msg>updated README installation to use =dev-master until I get to 1.0.0<commit_after># pdo-crud-for-free

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This package provides a few classes to try to give programmers using PDO in a simple way some instance CRUD (create-read-update-delete) method, 'for free', simply by subclassing \Mattsmithdev\Pdo\DatabaseTable.

All code is (intented :-) to follow PSR-1, PSR-2 coding standards. Classes are following the PSR-4 autoloading standard.

## Install

Via Composer

``` bash
$ composer require mattsmithdev/pdo-crud-for-free
```

NOTE - until I get the hang of SemVer (and get to a 1.0.0 or later version), 
then you'll need to force the dev-master download as follows:

``` bash
$ composer require mattsmithdev/pdo-crud-for-free=dev-master
```



## Usage

``` php

// file: /src/Product.php
class Product extends \Mattsmithdev\Pdo\DatabaseTable {
    // private properties with EXACTLY same names as DB table columns
    
    // and ensure DB table has 'id' integer auto-increment primary key
{'fraction_non_alphanumeric': 0.1246797608881298, 'fraction_numerical': 0.005123825789923143, 'mean_word_length': 4.686893203883495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '846358', 'n_tokens_mistral': 777, 'n_tokens_neox': 744, 'n_words': 231}